]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/templates/notes/show.jst.ejs
d85d7859250fd1d73162e692a5d196dce5a8a9bd
[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       <% if (comment.user) { %>
7         <%- I18n.t('javascripts.notes.show.event', {
8            action: comment.action, user: comment.user, time: comment.date
9         }) %>
10       <% } else { %>
11         <%- I18n.t('javascripts.notes.show.anonymous_event', {
12            action: comment.action, time: comment.date
13         }) %>
14       <% } %>
15     </small>
16     <br/>
17     <%- comment.text %>
18   </p>
19   <% }) %>
20   <% if (note.status == "open") { %>
21   <form action="#">
22     <textarea name="text" cols="40" rows="5"></textarea>
23     <br/>
24     <div class="buttons">
25       <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" data-url="<%- note.close_url %>">
26       <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-url="<%- note.comment_url %>" disabled="1">
27     </div>
28   </form>
29   <% } %>
30 </div>