X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/76bc5eba0617e36ebb853d24212543d0e1d4904d..efd50cd529990069dc1ca95f66ec6f61471fe29d:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ed1e596ee..81e930812 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 => 'users', :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? %> @@ -121,7 +127,7 @@ <% end %> <%= user = (@prev_by_user || @next_by_user).user.display_name - link_to content_tag(:bdi, user), :controller => "changeset", :action => "list", :display_name => user + link_to content_tag(:bdi, user), :controller => "changeset", :action => "index", :display_name => user %> <% if @next_by_user %> ·