X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c233bec67b8e99ce5b476436181f9df6ca888814..9e98c9d41df683c131719cca60b9a8b5f3d267d9:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 3019fba95..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,18 +28,18 @@ <% if @comments.length > 0 %>
-
+