2 <h2><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></h2>
3 <% note.comments.forEach(function (comment) { %>
5 <small class="deemphasize">
6 <% if (comment.user) { %>
7 <%= I18n.t('javascripts.notes.show.' + comment.action + '_by', {
8 user: comment.user, user_url: comment.user_url,
9 time: I18n.l("time.formats.long", comment.date)
12 <%- I18n.t('javascripts.notes.show.' + comment.action + '_by_anonymous', {
13 time: I18n.l("time.formats.long", comment.date)
17 <div class="comment_body"><%= comment.html %></div>
20 <% if (note.status == "open") { %>
22 <textarea class="comment" name="text" cols="40" rows="5"></textarea>
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">