X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/50091893d44ecfc48c13bb2269f23a6f23aea1d2..3af16f6337b52546297e7e09a1aba9b0e1df7e15:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 4cb15306f..f39d8263f 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -1,25 +1,25 @@ -<% set_title(t('.title', :id => @changeset.id)) %> +<% set_title(t(".title", :id => @changeset.id)) %>

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

-

<%= linkify(h(@changeset.tags['comment'].to_s.presence || t('browse.no_comment'))) %>

+

<%= linkify(h(@changeset.tags["comment"].to_s.presence || t("browse.no_comment"))) %>

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

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

+

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

<% if current_user %>
<% if @changeset.subscribers.exists?(current_user.id) %> - + " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> <% else %> - + " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> <% end %>
@@ -40,7 +40,7 @@ :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') %> + — <%= t("javascripts.changesets.show.hide_comment") %> <% end %> <%= comment.body.to_html %> @@ -52,7 +52,7 @@ :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') %> + — <%= t("javascripts.changesets.show.unhide_comment") %> <%= comment.body.to_html %> @@ -65,7 +65,7 @@ <% unless current_user %>
- <%= link_to(t(".join_discussion"), :controller => 'users', :action => 'login', :referer => request.fullpath) %> + <%= link_to(t(".join_discussion"), :controller => "users", :action => "login", :referer => request.fullpath) %>
<% end %> @@ -74,48 +74,48 @@
- + " data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1"/>
<% else %>
- <%= t('.still_open') %> + <%= t(".still_open") %>
<% end %> <% end %> <% unless @ways.empty? %>

- <%= type_and_paginated_count('way', @way_pages) %> - <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %> + <%= type_and_paginated_count("way", @way_pages) %> + <%= render :partial => "paging_nav", :locals => { :pages => @way_pages, :page_param => "way_page" } %>

<% end %> <% unless @relations.empty? %>

- <%= type_and_paginated_count('relation', @relation_pages) %> - <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %> + <%= type_and_paginated_count("relation", @relation_pages) %> + <%= render :partial => "paging_nav", :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>

<% end %> <% unless @nodes.empty? %>

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

<% end %> @@ -139,7 +139,7 @@ <% end %>
- <%= link_to(t('.changesetxml'), :controller => "api/changesets", :action => "show") %> + <%= link_to(t(".changesetxml"), :controller => "api/changesets", :action => "show") %> · - <%= link_to(t('.osmchangexml'), :controller => "api/changesets", :action => "download") %> + <%= link_to(t(".osmchangexml"), :controller => "api/changesets", :action => "download") %>