]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/templates/notes/show.jst.ejs
9b9266a05a6694fd25809a619cd8c829c7de263e
[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   <div>
5     <small class="deemphasize">
6       <% if (comment.user) { %>
7         <%= I18n.t('javascripts.notes.show.event', {
8            action: comment.action, user: comment.user,
9            user_url: comment.user_url, time: comment.date
10         }) %>
11       <% } else { %>
12         <%- I18n.t('javascripts.notes.show.anonymous_event', {
13            action: comment.action, time: comment.date
14         }) %>
15       <% } %>
16     </small>
17     <div class="comment_body"><%= comment.html %></div>
18   </div>
19   <% }) %>
20   <% if (note.status == "open") { %>
21   <form action="#">
22     <textarea class="comment" 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>