]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/templates/notes/show.jst.ejs
Allow commenting on, and closing of, notes from the web site
[rails.git] / app / assets / javascripts / templates / notes / show.jst.ejs
1 <h2><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></h2>
2 <% note.comments.forEach(function (comment) { %>
3 <p>
4   <small class="deemphasize">
5     <%- I18n.t('javascripts.notes.show.event', {
6        action: comment.action, user: comment.user, time: comment.date
7     }) %>
8   </small>
9   <br/>
10   <%- comment.text %>
11 </p>
12 <% }) %>
13 <% if (note.status == "open") { %>
14 <form action="#">
15   <textarea name="text" cols="40" rows="5"></textarea>
16   <br/>
17   <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" id="note-close">
18   <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" id="note-comment">
19 </form>
20 <% } %>