X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4347d9d3b00a8fffe78daa93eac5b490905f9ac8..9e98c9d41df683c131719cca60b9a8b5f3d267d9:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index f58c465a7..d04d5e6bd 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -14,11 +14,11 @@ <% if current_user %>
-
+ <% if @changeset.subscribers.exists?(current_user.id) %> - " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> + " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> <% else %> - " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> + " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> <% end %>
@@ -28,7 +28,7 @@ <% if @comments.length > 0 %>
-
+