rosa-build/app/views/home/partials/_new_issue_notification.haml

13 lines
694 B
Plaintext
Raw Normal View History

2014-01-21 04:51:49 +00:00
-user= User.where(email: user_email).first || User.new(email: user_email) if defined?(user_email)
2014-03-17 16:43:42 +00:00
- name_with_owner = "#{project_owner}/#{project_name}"
.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.persisted?
.text
%span
2014-03-17 16:43:42 +00:00
= raw t("notifications.bodies.new_issue_notification", { user_link: user_link(user, user_name), issue_link: project_issue_path(name_with_owner, issue_serial_id)})
2014-03-13 16:35:00 +00:00
= raw t("notifications.bodies.project", project_link: link_to(name_with_owner, project_path(name_with_owner)) )
2012-03-11 17:30:14 +00:00
.both
2014-01-21 04:51:49 +00:00
= datetime_moment activity_feed.created_at, tag: :span, class: 'date'
.both
2012-03-14 17:00:26 +00:00
%span.subject= issue_title