X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0c79686f3cef86330d0ab6bbef2a9e2275ac93ac..783b5e3729228908d7404ae7404af1023501a906:/app/views/browse/note.html.erb diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index c7989d789..f68dfbe2e 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -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 %>