X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/827024f7e6c48a11dbe08e569e2cbd852701bd31..1778fa3d9c25ae1a98386d3dcbb426eda5e62fbf:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ed1e596ee..1328461d7 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 => "changesets", :action => "index", :display_name => user %> <% if @next_by_user %> · @@ -131,7 +137,7 @@ <% end %>
- <%= link_to(t('.changesetxml'), :controller => "changeset", :action => "read") %> + <%= link_to(t('.changesetxml'), :controller => "api/changesets", :action => "show") %> · - <%= link_to(t('.osmchangexml'), :controller => "changeset", :action => "download") %> + <%= link_to(t('.osmchangexml'), :controller => "api/changesets", :action => "download") %>