X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/827024f7e6c48a11dbe08e569e2cbd852701bd31..9c04912f1deb7b114c61e838a6e4a4b7775167d8:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ed1e596ee..85b9515df 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -13,15 +13,17 @@

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

-
-
- <% if current_user and @changeset.subscribers.exists?(current_user.id) %> - - <% else %> - - <% end %> -
-
+ <% if current_user %> +
+
+ <% if @changeset.subscribers.exists?(current_user.id) %> + + <% else %> + + <% end %> +
+
+ <% end %>
@@ -59,21 +61,25 @@ <% end %> -
- <%= link_to(t(".join_discussion"), :controller => 'user', :action => 'login', :referer => request.fullpath) %> -
+ <% unless current_user %> +
+ <%= link_to(t(".join_discussion"), :controller => 'user', :action => 'login', :referer => request.fullpath) %> +
+ <% end %> - <% unless @changeset.is_open? %> -
- -
- + <% if current_user %> + <% unless @changeset.is_open? %> + + +
+ +
+ + <% else %> +
+ <%= t('.still_open') %>
- - <% else %> -
- <%= t('.still_open') %> -
+ <% end %> <% end %> <% unless @ways.empty? %>