X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/300cd884ec5a8bd76be912f7d745e0ced7761175..9b0767b80fcd2ad919ea09277eed921580ad1b1a:/app/views/browse/changeset.html.erb?ds=sidebyside diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 523cb84d6..4045c0b48 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -3,28 +3,32 @@ <%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>
-

+

<%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>

<%= changeset_details(@changeset) %>

<%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %> -

<%= t(".discussion") %>

- - <% 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 %> -
+
+
+

<%= t(".discussion") %>

- <% end %> -
+ <% if current_user %> +
+ +
+ <% end %> +
<% if @comments.length > 0 %>
@@ -69,12 +73,12 @@ <% end %> <% if current_user %> - <% unless @changeset.is_open? %> + <% unless @changeset.open? %>
-
+
-
+
" data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1" class="btn btn-sm btn-primary" />