From 51a21e6738c5fe524472971e8171bf2442bea415 Mon Sep 17 00:00:00 2001 From: Aaron Lidman Date: Tue, 5 Nov 2013 10:04:45 -0800 Subject: [PATCH] Consistent headers and footers in sidebar --- app/assets/stylesheets/common.css.scss | 8 ++++++-- app/views/browse/_node_details.html.erb | 2 +- app/views/browse/_relation_details.html.erb | 2 +- app/views/browse/_way_details.html.erb | 2 +- app/views/browse/changeset.html.erb | 11 ++++++----- app/views/browse/node.html.erb | 14 +++++++++----- app/views/browse/node_history.html.erb | 13 ++++++++----- app/views/browse/note.html.erb | 10 ++++++---- app/views/browse/relation.html.erb | 12 +++++++----- app/views/browse/relation_history.html.erb | 12 +++++++----- app/views/browse/way.html.erb | 15 +++++++++------ app/views/browse/way_history.html.erb | 12 +++++++----- app/views/diary_entry/comments.html.erb | 8 ++++---- 13 files changed, 72 insertions(+), 49 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 66b9f3c48..c4ac18edc 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -563,7 +563,6 @@ nav.secondary { h2, h3, h4 { padding: $lineheight; - border-bottom: $keyline; } h4 { @@ -957,7 +956,6 @@ a.donate { #sidebar_content { .browse-section { padding: 20px; - border-bottom: 1px solid #CCC; } .browse-field { @@ -1783,6 +1781,12 @@ ul.secondary-actions { } } +div.secondary-actions { + padding: 10px; + border-top: 1px solid #ccc; + text-align: center; +} + /* Utility for managing inner content areas */ .inner22 { padding: $lineheight;} diff --git a/app/views/browse/_node_details.html.erb b/app/views/browse/_node_details.html.erb index 10a64b7f7..60f6c01fa 100644 --- a/app/views/browse/_node_details.html.erb +++ b/app/views/browse/_node_details.html.erb @@ -1,4 +1,4 @@ -
+
<% if node_details.redacted? %>
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.node'), :redaction_link => link_to(t('browse.redacted.redaction', :id => node_details.redaction.id), node_details.redaction), :version => node_details.version %> diff --git a/app/views/browse/_relation_details.html.erb b/app/views/browse/_relation_details.html.erb index 1c0f4c93c..6e12f7f65 100644 --- a/app/views/browse/_relation_details.html.erb +++ b/app/views/browse/_relation_details.html.erb @@ -1,4 +1,4 @@ -
+
<% if relation_details.redacted? %>
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(t('browse.redacted.redaction', :id => relation_details.redaction.id), relation_details.redaction), :version => relation_details.version %>< diff --git a/app/views/browse/_way_details.html.erb b/app/views/browse/_way_details.html.erb index 1c7972aa8..2ffa6573b 100644 --- a/app/views/browse/_way_details.html.erb +++ b/app/views/browse/_way_details.html.erb @@ -1,4 +1,4 @@ -
+
<% if way_details.redacted? %>
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.way'), :redaction_link => link_to(t('browse.redacted.redaction', :id => way_details.redaction.id), way_details.redaction), :version => way_details.version %> diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 1970f568d..e6a4db707 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -1,4 +1,4 @@ -
+

<%= t 'browse.changeset.changeset', :id => @changeset.id %>

<% @@ -56,7 +56,8 @@ <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %> <% end %> -

    -
  • <%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %>
  • -
  • <%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %>
  • -
+
+ <%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %> + · + <%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %> +
diff --git a/app/views/browse/node.html.erb b/app/views/browse/node.html.erb index 9fc915a12..1936b9343 100644 --- a/app/views/browse/node.html.erb +++ b/app/views/browse/node.html.erb @@ -3,11 +3,15 @@ @title = t('browse.node.node') + ' | ' + @name %> -

<%= t'browse.node.node_title', :node_name => @name %>

+
+

<%= t'browse.node.node_title', :node_name => @name %>

+
<%= render :partial => "node_details", :object => @node %> -
    -
  • <%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %>
  • -
  • <%= link_to(t('browse.node.view_history'), :action => "node_history") %>
  • -
+
+ <%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %> + · + <%= link_to(t('browse.node.view_history'), :action => "node_history") %> + +
diff --git a/app/views/browse/node_history.html.erb b/app/views/browse/node_history.html.erb index 5727669bf..9b3c27a87 100644 --- a/app/views/browse/node_history.html.erb +++ b/app/views/browse/node_history.html.erb @@ -3,13 +3,16 @@ @title = t('browse.node_history.node_history') + ' | ' + @name %> -

<%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %>

+
+

<%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %>

+
<% @node.old_nodes.reverse.each do |node| %> <%= render :partial => "node_details", :object => node %> <% end %> -
    -
  • <%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %>
  • -
  • <%= link_to(t('browse.node_history.view_details'), :action => "node") %>
  • -
+
+ <%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %> + · + <%= link_to(t('browse.node_history.view_details'), :action => "node") %> +
diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 2d2560ef2..dbf384799 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -1,8 +1,10 @@ -

<%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>

+
+

<%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>

+
<% if @note.comments.find { |comment| comment.author.nil? } -%>
-

<%= t "javascripts.notes.show.anonymous_warning" %>

+

<%= t "javascripts.notes.show.anonymous_warning" %>

<% end -%> @@ -31,7 +33,7 @@

<%= t "browse.node_details.coordinates" %>

-

<%= link_to ("#{number_with_delimiter(@note.lat)}, #{number_with_delimiter(@note.lon)}".html_safe), {:controller => 'site', :action => 'index', :lat => h(@note.lat), :lon => h(@note.lon), :zoom => "18"} %>

+

<%= link_to ("#{number_with_delimiter(@note.lat)}, #{number_with_delimiter(@note.lon)}".html_safe), {:controller => 'site', :action => 'index', :lat => h(@note.lat), :lon => h(@note.lon), :zoom => "18"} %>

@@ -42,7 +44,7 @@ <% @note.comments[1..-1].each do |comment| %>
  • <%= comment.body.to_html %> - <%= note_event(comment.created_at, comment.author) %> + <%= note_event(comment.created_at, comment.author) %>
  • <% end %> diff --git a/app/views/browse/relation.html.erb b/app/views/browse/relation.html.erb index 213e5108f..d561cc21f 100644 --- a/app/views/browse/relation.html.erb +++ b/app/views/browse/relation.html.erb @@ -3,11 +3,13 @@ @title = t('browse.relation.relation') + ' | ' + @name %> -

    <%= t'browse.relation.relation_title', :relation_name => @name %>

    +
    +

    <%= t'browse.relation.relation_title', :relation_name => @name %>

    +
    <%= render :partial => "relation_details", :object => @relation %> -
      -
    • <%= link_to(t('browse.relation.download_xml'), :controller => "relation", :action => "read") %>
    • -
    • <%= link_to(t('browse.relation.view_history'), :action => "relation_history") %>
    • -
    +
    + <%= link_to(t('browse.relation.download_xml'), :controller => "relation", :action => "read") %> + <%= link_to(t('browse.relation.view_history'), :action => "relation_history") %> +
    diff --git a/app/views/browse/relation_history.html.erb b/app/views/browse/relation_history.html.erb index 6112d834e..cf100b77e 100644 --- a/app/views/browse/relation_history.html.erb +++ b/app/views/browse/relation_history.html.erb @@ -3,13 +3,15 @@ @title = t('browse.relation_history.relation_history') + ' | ' + @name %> -

    <%= raw t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %>

    +
    +

    <%= raw t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %>

    +
    <% @relation.old_relations.reverse.each do |relation| %> <%= render :partial => "relation_details", :object => relation %> <% end %> -
      -
    • <%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %>
    • -
    • <%= link_to(t('browse.relation_history.view_details'), :action => "relation") %>
    • -
    +
    + <%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %> + <%= link_to(t('browse.relation_history.view_details'), :action => "relation") %> +
    diff --git a/app/views/browse/way.html.erb b/app/views/browse/way.html.erb index 3d1e2c577..e1da90c44 100644 --- a/app/views/browse/way.html.erb +++ b/app/views/browse/way.html.erb @@ -2,12 +2,15 @@ @name = printable_name @way @title = t('browse.way.way') + ' | ' + @name %> - -

    <%= t'browse.way.way_title', :way_name => @name %>

    +
    +

    <%= t'browse.way.way_title', :way_name => @name %>

    +
    <%= render :partial => "way_details", :object => @way %> -
      -
    • <%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
    • -
    • <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
    • -
    +
    + <%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %> + · + <%= link_to(t('browse.way.view_history'), :action => "way_history") %> + +
    diff --git a/app/views/browse/way_history.html.erb b/app/views/browse/way_history.html.erb index a05d0c125..0f82c346c 100644 --- a/app/views/browse/way_history.html.erb +++ b/app/views/browse/way_history.html.erb @@ -3,13 +3,15 @@ @title = t('browse.way_history.way_history') + ' | ' + @name %> -

    <%= raw t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %>

    +
    +

    <%= raw t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %>

    +
    <% @way.old_ways.reverse.each do |way| %> <%= render :partial => "way_details", :object => way %> <% end %> -
      -
    • <%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %>
    • -
    • <%= link_to(t('browse.way_history.view_details'), :action => "way") %>
    • -
    +
    + <%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %> + <%= link_to(t('browse.way_history.view_details'), :action => "way") %> +
    diff --git a/app/views/diary_entry/comments.html.erb b/app/views/diary_entry/comments.html.erb index fd90b7501..9dc800cff 100644 --- a/app/views/diary_entry/comments.html.erb +++ b/app/views/diary_entry/comments.html.erb @@ -18,7 +18,7 @@ <% end -%> -
      -
    • <%= link_to t('diary_entry.comments.older_comments') , { :page => @comment_pages.current.next} if @comment_pages.current.next %>
    • -
    • <%= link_to t('diary_entry.comments.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %>
    • -
    +
    + <%= link_to t('diary_entry.comments.older_comments') , { :page => @comment_pages.current.next} if @comment_pages.current.next %> + <%= link_to t('diary_entry.comments.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %> +
    -- 2.43.2