]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/templates/notes/show.jst.ejs
Make titles in note popups link to the note
[rails.git] / app / assets / javascripts / templates / notes / show.jst.ejs
index 8c37118f189cdf04246ca27c364d2fd2e1e40a97..e60971884dcd0f07147f5dcfe2247f26dfe1917d 100644 (file)
@@ -1,5 +1,5 @@
 <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>
   <% } %>