]> git.openstreetmap.org Git - rails.git/commitdiff
Link user names to their pages
authorTom Hughes <tom@compton.nu>
Sun, 2 Dec 2012 16:39:20 +0000 (16:39 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 3 Dec 2012 14:50:54 +0000 (14:50 +0000)
app/assets/javascripts/templates/notes/show.jst.ejs
config/locales/en.yml

index d85d7859250fd1d73162e692a5d196dce5a8a9bd..eb3a1474b74e141c8440a35fc02d859fecba58e9 100644 (file)
@@ -4,8 +4,9 @@
   <p>
     <small class="deemphasize">
       <% if (comment.user) { %>
   <p>
     <small class="deemphasize">
       <% 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', {
         }) %>
       <% } else { %>
         <%- I18n.t('javascripts.notes.show.anonymous_event', {
index 605ff4381d5937683d67d8d1dde143a1a2935862..3490163352fa192abddfeda093e6a520e5c9c912 100644 (file)
@@ -2022,7 +2022,7 @@ en:
         add: Add Note
       show:
         title: Note %{id}
         add: Add Note
       show:
         title: Note %{id}
-        event: "%{action} by %{user} at %{time}"
+        event: "%{action} by <a href='%{user_url}'>%{user}</a> at %{time}"
         anonymous_event: "%{action} by anonymous at %{time}"
         close: Close
         comment_and_close: Comment & Close
         anonymous_event: "%{action} by anonymous at %{time}"
         close: Close
         comment_and_close: Comment & Close