From: Tom Hughes Date: Sun, 2 Dec 2012 16:39:20 +0000 (+0000) Subject: Link user names to their pages X-Git-Tag: live~5117^2~58 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/dbc523bf34f172df45f751020018ff260917e8c9?hp=9477d7a65e03b895a8d30a4586449e76c1ea4758 Link user names to their pages --- diff --git a/app/assets/javascripts/templates/notes/show.jst.ejs b/app/assets/javascripts/templates/notes/show.jst.ejs index d85d78592..eb3a1474b 100644 --- a/app/assets/javascripts/templates/notes/show.jst.ejs +++ b/app/assets/javascripts/templates/notes/show.jst.ejs @@ -4,8 +4,9 @@

<% if (comment.user) { %> - <%- I18n.t('javascripts.notes.show.event', { - action: comment.action, user: comment.user, time: comment.date + <%= I18n.t('javascripts.notes.show.event', { + action: comment.action, user: comment.user, + user_url: comment.user_url, time: comment.date }) %> <% } else { %> <%- I18n.t('javascripts.notes.show.anonymous_event', { diff --git a/config/locales/en.yml b/config/locales/en.yml index 605ff4381..349016335 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2022,7 +2022,7 @@ en: add: Add Note show: title: Note %{id} - event: "%{action} by %{user} at %{time}" + event: "%{action} by %{user} at %{time}" anonymous_event: "%{action} by anonymous at %{time}" close: Close comment_and_close: Comment & Close