From 3c3e03993acdc057db2a85728013763288937246 Mon Sep 17 00:00:00 2001 From: maxwell Date: Fri, 17 Dec 2010 11:48:08 -0800 Subject: [PATCH] make the two links on comment notifications clearer --- app/helpers/notifications_helper.rb | 2 +- app/views/notifications/index.html.haml | 2 +- config/locales/diaspora/en.yml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index f95c168f3..c8699937a 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -8,7 +8,7 @@ module NotificationsHelper when 'new_request' translation 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 end end diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index a7a4b2056..886e8329c 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -5,4 +5,4 @@ %h3 = link_to "#{note.person.name.titleize}", person_path(note.person) = object_link(note) - %span.description=" #{time_ago_in_words(note.created_at)}" + %span.description=" #{t('ago', :time => time_ago_in_words(note.created_at))}" diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 6bf7ff40b..a4a899678 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -182,7 +182,8 @@ en: notifications: request_accepted: "accepted your share request." new_request: "offered to share with you." - comment_on_post: "commented on your post" + comment_on_post: "commented on your" + post: 'post' users: edit: export_data: "Export Data"