]> git.openstreetmap.org Git - rails.git/commitdiff
Make titles in note popups link to the note
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 16:50:59 +0000 (16:50 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 16:50:59 +0000 (16:50 +0000)
app/assets/javascripts/templates/notes/show.jst.ejs

index 8c37118f189cdf04246ca27c364d2fd2e1e40a97..e60971884dcd0f07147f5dcfe2247f26dfe1917d 100644 (file)
@@ -1,5 +1,5 @@
 <div class="note">
 <div class="note">
-  <h2><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></h2>
+  <h2><a href="/?note=<%- note.id %>"><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></a></h2>
   <% if (note.comments.some(function (comment) { return !comment.user })) { %>
   <small class="warning"><%- I18n.t('javascripts.notes.show.anonymous_warning') %></small>
   <% } %>
   <% if (note.comments.some(function (comment) { return !comment.user })) { %>
   <small class="warning"><%- I18n.t('javascripts.notes.show.anonymous_warning') %></small>
   <% } %>