X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3af16f6337b52546297e7e09a1aba9b0e1df7e15..928465764e52407884b35e31a08bf9241e651269:/app/views/browse/note.html.erb diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 75d85ae04..2389598bc 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -12,9 +12,9 @@
- <%= note_event("open", @note.created_at, @note.author) %> + <%= note_event("opened", @note.created_at, @note.author) %> <% if @note.status == "closed" %> -
+
<%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %> <% end %>
@@ -41,18 +41,18 @@ <% end %> <% if @note.status == "open" %> -
- -
- <% 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 -%> + <% if current_user -%> + + +
+ <% if current_user.moderator? -%> + " class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> + <% end -%> " 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"> -
- + " data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, "json") %>" disabled="1"> +
+ + <% end -%> <% else %>