From dbc523bf34f172df45f751020018ff260917e8c9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 2 Dec 2012 16:39:20 +0000 Subject: [PATCH 1/1] Link user names to their pages --- app/assets/javascripts/templates/notes/show.jst.ejs | 5 +++-- config/locales/en.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.43.2