X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d57dd1f4da4d4605f534607b69944e3c977e4db5..c47a40c1db59f0d0f836fbcd1b876390befe796e:/app/views/notes/show.html.erb?ds=inline diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 4aa2e7fd3..8dda65c25 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -28,6 +28,32 @@

<%= t ".anonymous_warning" %>

<% end -%> +
+
+

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

+
+ + <% if current_user %> +
+ <% if @note.subscribers.exists?(current_user.id) %> + <%= tag.button t(".unsubscribe"), + :type => "button", + :class => "btn btn-sm btn-primary", + :name => "unsubscribe", + :data => { :method => "DELETE", + :url => api_note_subscription_path(@note) } %> + <% else %> + <%= tag.button t(".subscribe"), + :type => "button", + :class => "btn btn-sm btn-primary", + :name => "subscribe", + :data => { :method => "POST", + :url => api_note_subscription_path(@note) } %> + <% end %> +
+ <% end %> +
+ <% if @note_comments.length > 1 %>