X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/124909a64c4c2b739cebfff69fcf100e6b6d2457..47027300607a0eb0127aa408fff508e56ad64021:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index b5c360a03..208ddbd46 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -17,57 +17,53 @@ <% if current_user %>
-
-
- <% if @changeset.subscribers.exists?(current_user.id) %> - " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> - <% else %> - " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> - <% end %> -
-
+ <% if @changeset.subscribers.exists?(current_user.id) %> + + <% else %> + + <% end %>
<% end %> <% if @comments.length > 0 %> -
-
-
+ + <% elsif current_user&.moderator? %> +
  • + + <%= t(".hidden_comment_by_html", + :time_ago => friendly_date_ago(comment.created_at), + :user => link_to(comment.author.display_name, user_path(comment.author))) %> + — + +
    <%= comment.body.to_html %> -
  • - <% end %> + + <% end %> - - - + <% end %> + + <% end %> <% unless current_user %> -

    +

    <%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>

    <% end %> @@ -78,14 +74,14 @@
    -