X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/673b58f96f3acfd0281c62a2a7f080825b6fb28b..74b91c0e3e53b4b8da8d7f759ecca67ff5c39a7b:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 6a3e85680..4cb15306f 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -1,8 +1,8 @@ -<% set_title(t('browse.changeset.title', :id => @changeset.id)) %> +<% set_title(t('.title', :id => @changeset.id)) %>

- <%= t('browse.changeset.title', :id => @changeset.id) %> + <%= t('.title', :id => @changeset.id) %>

@@ -11,17 +11,19 @@ <%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %> -

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

+

<%= 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 %>
@@ -33,10 +35,10 @@ <% if comment.visible %>
  • - <%= t("browse.changeset.commented_by", - :when => friendly_date(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(h(comment.author.display_name), {:controller => "user", :action => "view", - :display_name => comment.author.display_name})).html_safe %> + <%= t(".commented_by", + :when => friendly_date(comment.created_at), + :exact_time => l(comment.created_at), + :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> <% if current_user and current_user.moderator? %> — <%= t('javascripts.changesets.show.hide_comment') %> <% end %> @@ -46,10 +48,10 @@ <% elsif current_user and current_user.moderator? %>
  • - <%= t("browse.changeset.hidden_commented_by", - :when => friendly_date(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(h(comment.author.display_name), {:controller => "user", :action => "view", - :display_name => comment.author.display_name})).html_safe %> + <%= t(".hidden_commented_by", + :when => friendly_date(comment.created_at), + :exact_time => l(comment.created_at), + :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> — <%= t('javascripts.changesets.show.unhide_comment') %> <%= comment.body.to_html %> @@ -61,21 +63,25 @@
  • <% end %> -
    - <%= link_to(t("browse.changeset.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('browse.changeset.still_open') %> -
    + <% end %> <% end %> <% unless @ways.empty? %> @@ -85,7 +91,7 @@
      <% @ways.each do |way| %> -
    • <%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %>
    • +
    • <%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, { :class => link_class('way', way), :title => link_title(way) } %>
    • <% end %>
    <% end %> @@ -97,7 +103,7 @@
      <% @relations.each do |relation| %> -
    • <%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %>
    • +
    • <%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, { :class => link_class('relation', relation), :title => link_title(relation) } %>
    • <% end %>
    <% end %> @@ -105,11 +111,11 @@ <% unless @nodes.empty? %>

    <%= type_and_paginated_count('node', @node_pages) %> - <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %> + <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page" } %>

      <% @nodes.each do |node| %> -
    • <%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node), :rel => link_follow(node) %>
    • +
    • <%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, { :class => link_class('node', node), :title => link_title(node), :rel => link_follow(node) } %>
    • <% end %>
    <% end %> @@ -123,7 +129,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 %> · @@ -133,7 +139,7 @@ <% end %>
    - <%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %> + <%= link_to(t('.changesetxml'), :controller => "api/changesets", :action => "show") %> · - <%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %> + <%= link_to(t('.osmchangexml'), :controller => "api/changesets", :action => "download") %>