X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78b9d92207bb215459ecff466c3efe2fa6466ab3..f064a18a16de7d5001107116c7916796e0b15a26:/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 f58c465a7..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 %>
-
+