X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7ce40eeb3813aaba6eabec1e134cbe98e4e6b548..50b2f4f656b82112fce4939da26a1afc6b140e89:/app/views/browse/note.html.erb diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index c7989d789..2389598bc 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -12,7 +12,7 @@
- <%= 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) %> @@ -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 %>