]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/templates/notes/show.jst.ejs
8b95fea2e3bdd75c578b83016e0ba74e667b5760
[rails.git] / app / assets / javascripts / templates / notes / show.jst.ejs
1 <div class="note">
2   <h2><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></h2>
3   <% note.comments.forEach(function (comment) { %>
4   <p>
5     <small class="deemphasize">
6       <%- I18n.t('javascripts.notes.show.event', {
7          action: comment.action, user: comment.user, time: comment.date
8       }) %>
9     </small>
10     <br/>
11     <%- comment.text %>
12   </p>
13   <% }) %>
14   <% if (note.status == "open") { %>
15   <form action="#">
16     <textarea name="text" cols="40" rows="5"></textarea>
17     <br/>
18     <div class="buttons">
19       <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" data-url="<%- note.close_url %>">
20       <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-url="<%- note.comment_url %>" disabled="1">
21     </div>
22   </form>
23   <% } %>
24 </div>