- <%= note_event('open', @note.created_at, @note.author) %>
+ <%= note_event("open", @note.created_at, @note.author) %>
<% if @note.status == "closed" %>
<%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %>
@@ -45,12 +45,12 @@
<% if current_user and current_user.moderator? -%>
-
+ " class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>">
<% end -%>
<% if current_user -%>
-
+ " data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= close_note_url(@note, "json") %>">
<% end -%>
-
+ " data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, "json") %>" disabled="1">
<% else %>
@@ -58,10 +58,10 @@
<% if current_user and current_user.moderator? -%>
-
+ " class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>">
<% end -%>
<% if current_user -%>
-
+ " data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>">
<% end -%>