2013-02-22 14:43:51 +00:00
|
|
|
-user= User.where(:email => user_email).first || User.new(:email => user_email) if defined?(user_email)
|
2012-03-13 18:47:37 +00:00
|
|
|
.top
|
2013-03-07 08:06:34 +00:00
|
|
|
.image= link_to(image_tag(avatar_url(user, :small), :alt => 'avatar'), user_path(user)) if user.try(:persisted?)
|
2012-03-13 18:47:37 +00:00
|
|
|
.text
|
|
|
|
%span
|
2013-03-07 08:06:34 +00:00
|
|
|
-_user_link = defined?(user_email) ? user_link(user, defined?(user_name) ? user_name : user_email) : nil
|
2013-02-25 10:13:40 +00:00
|
|
|
= raw t("notifications.bodies.#{change_type}_branch", {:branch_name => branch_name, :user_link => _user_link})
|
2012-04-19 20:45:50 +01:00
|
|
|
= raw t("notifications.bodies.project", :project_link => link_to("#{project_owner}/#{project_name}", project_path(project_owner, project_name)) )
|
2012-03-11 17:30:14 +00:00
|
|
|
.both
|
2013-09-01 13:59:05 +01:00
|
|
|
= datetime_moment activity_feed.created_at, :tag => :span, :class => 'date'
|
2012-03-13 18:47:37 +00:00
|
|
|
.both
|
|
|
|
%span.subject
|
|
|
|
- last_commits.each do |commit|
|
2012-04-19 20:45:50 +01:00
|
|
|
= link_to shortest_hash_id(commit[0]), commit_path(project_owner, project_name, commit[0])
|
2012-03-13 18:47:37 +00:00
|
|
|
= commit[1]
|
|
|
|
%br
|
2013-03-07 08:06:34 +00:00
|
|
|
- if defined? other_commits
|
|
|
|
%br
|
2013-09-08 12:56:43 +01:00
|
|
|
=link_to t('notifications.bodies.more_commits', :count => other_commits_count, :commits => commits_pluralize(other_commits_count)),
|
|
|
|
diff_path(project_owner, project_name, :diff => other_commits)
|