From: Tom Hughes Date: Mon, 29 Jun 2009 17:11:50 +0000 (+0000) Subject: Go back to using < and > for navigation instead of the nasty looking X-Git-Tag: live~6815^2~9 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/493fd3fa112daeae9c49d5651b0e43e6699c4e84 Go back to using < and > for navigation instead of the nasty looking unicode arrows which aren't at all consistent with the use of | as the separator. Also remove some of the translations - there is no reason that I can see to allow translations to completely change how the navigation control is laid out. --- diff --git a/app/views/browse/_navigation.html.erb b/app/views/browse/_navigation.html.erb index b125ac75f..88812c2bb 100644 --- a/app/views/browse/_navigation.html.erb +++ b/app/views/browse/_navigation.html.erb @@ -1,27 +1,30 @@
<% if @next_by_user or @prev_by_user %> <% if @prev_by_user %> - <%= link_to t('browse.changeset_navigation.user.prev', :id => @prev_by_user.id.to_s), - { :id => @prev_by_user.id }, - { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %> - | + < + <%= link_to @prev_by_user.id.to_s, + { :id => @prev_by_user.id }, + { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %> + | <% end %> <%= user = (@prev_by_user || @next_by_user).user.display_name - link_to(t('browse.changeset_navigation.user.name', :user => h(user)), + link_to h(user), { :controller => "changeset", :action => "list", :display_name => user }, - { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) }) + { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) } %> <% if @next_by_user %> - | - <%= link_to t('browse.changeset_navigation.user.next', :id => @next_by_user.id.to_s), - { :id => @next_by_user.id }, - { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %> + | + <%= link_to @next_by_user.id.to_s, + { :id => @next_by_user.id }, + { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %> + > <% end %>
<% end %> <% if @prev %> - <%= link_to t('browse.changeset_navigation.all.prev', :id => @prev.id.to_s), + < + <%= link_to @prev.id.to_s, { :id => @prev.id }, { :title => t('browse.changeset_navigation.all.prev_tooltip') } %> <% end %> @@ -29,8 +32,9 @@ | <% end %> <% if @next %> - <%= link_to t('browse.changeset_navigation.all.next', :id => @next.id.to_s), + <%= link_to @next.id.to_s, { :id => @next.id }, { :title => t('browse.changeset_navigation.all.next_tooltip') } %> + > <% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index e0a89f93c..1bb1b5c4b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -89,15 +89,10 @@ en: osmchangexml: "osmChange XML" changeset_navigation: user: - name: "{{user}}" name_tooltip: "View edits by {{user}}" - prev: "← {{id}}" prev_tooltip: "Previous edit by {{user}}" - next: "{{id}} →" next_tooltip: "Next edit by {{user}}" all: - prev: "← {{id}}" - next: "{{id}} →" prev_tooltip: "Previous changeset" next_tooltip: "Next changeset" changeset_details: diff --git a/config/locales/is.yml b/config/locales/is.yml index a09194461..3f4e68fe2 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -89,15 +89,10 @@ is: osmchangexml: "osmChange XML sniði" changeset_navigation: user: - name: "{{user}}" name_tooltip: "Skoða breytingarsett eftir {{user}}" - prev: "← {{id}}" prev_tooltip: "Fyrri breytingarsett eftir {{user}}" - next: "{{id}} →" next_tooltip: "Næsta breytingarsett eftir {{user}}" all: - prev: "← {{id}}" - next: "{{id}} →" prev_tooltip: "Fyrra breytingarsett" next_tooltip: "Næsta breytingarsett" changeset_details: