make the two links on comment notifications clearer

This commit is contained in:
maxwell 2010-12-17 11:48:08 -08:00
parent 5763b441be
commit 3c3e03993a
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ module NotificationsHelper
when 'new_request' when 'new_request'
translation translation
when 'comment_on_post' when 'comment_on_post'
link_to translation, object_path(Comment.first(:id => note.object_id).post) "#{translation} #{link_to t('notifications.post'), object_path(Comment.first(:id => note.object_id).post)}".html_safe
else else
end end
end end

View file

@ -5,4 +5,4 @@
%h3 %h3
= link_to "#{note.person.name.titleize}", person_path(note.person) = link_to "#{note.person.name.titleize}", person_path(note.person)
= object_link(note) = object_link(note)
%span.description=" #{time_ago_in_words(note.created_at)}" %span.description=" #{t('ago', :time => time_ago_in_words(note.created_at))}"

View file

@ -182,7 +182,8 @@ en:
notifications: notifications:
request_accepted: "accepted your share request." request_accepted: "accepted your share request."
new_request: "offered to share with you." new_request: "offered to share with you."
comment_on_post: "commented on your post" comment_on_post: "commented on your"
post: 'post'
users: users:
edit: edit:
export_data: "Export Data" export_data: "Export Data"