X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9ad6d852c437a00e6cf9f0f529525a3b33d9901..caf2e2a242182f2c0dac78fc3f2f39b3fbbc8299:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 35cd4477b..079915fcf 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 %>
-
+