2014-01-21 04:51:49 +00:00
|
|
|
-user= User.where(email: user_email).first || User.new(email: user_email) if defined?(user_email)
|
2012-03-05 09:11:50 +00:00
|
|
|
.top
|
2014-01-21 04:51:49 +00:00
|
|
|
.image= link_to(image_tag(avatar_url(user, :small), alt: 'avatar'), user_path(user)) if user.try(:persisted?)
|
2012-03-14 17:00:26 +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
|
2014-01-21 04:51:49 +00:00
|
|
|
= t('notifications.bodies.delete_branch', branch_name: branch_name, user_link: _user_link).html_safe
|
2014-03-13 16:35:00 +00:00
|
|
|
- name_with_owner = "#{project_owner}/#{project_name}"
|
|
|
|
= raw t("notifications.bodies.project", project_link: link_to(name_with_owner, project_path(name_with_owner)) )
|
2012-03-14 17:00:26 +00:00
|
|
|
.both
|
2014-01-21 04:51:49 +00:00
|
|
|
= datetime_moment activity_feed.created_at, tag: :span, class: 'date'
|
2012-03-05 09:11:50 +00:00
|
|
|
.both
|