From: Tom MacWright Date: Tue, 13 Mar 2012 15:36:57 +0000 (-0400) Subject: Move the diary link to the sidebar X-Git-Tag: live~5686 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ae8cc604a1b7477a79f505592942c2d754825bc1?hp=5ef841085e2d0f6c5a0c82147daf90ab61bd72bb Move the diary link to the sidebar Restructure the links section in the sidebar to split it into two major groups, help and community and move the diary link from a tab to the community section of the sidebar. --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 12a5a8089..b8122b4a0 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -132,7 +132,7 @@ h2 { /* Rules for the menu displayed in the left sidebar */ .left_menu { - padding: 5px; + padding: 5px 10px; margin: 4px 0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; @@ -156,6 +156,13 @@ h2 { padding: 0px; } +/* submenus */ +.left_menu ul li ul { + font-weight: normal; + line-height: 15px; + font-size: 12px; +} + .left_menu a { color: #000; } @@ -178,7 +185,7 @@ h2 { */ .optionalbox { - padding: 5px; + padding: 5px 10px; margin: 4px 0; border-top: 1px solid #ccc; } @@ -210,7 +217,7 @@ h2 { } #search_field input[type="text"] { - width: 136px; + width: 130px; } #search_field input[type="submit"] { diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index b6fb08986..14cf7b003 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -32,20 +32,17 @@ historyclass = 'geolink bbox minzoom11' exportclass = 'geolink llz layers' traceclass = '' - diaryclass = '' viewclass += ' active' if params['controller'] == 'site' and params['action'] == 'index' editclass += ' active' if params['controller'] == 'site' and params['action'] == 'edit' historyclass += ' active' if params['controller'] == 'changeset' and params['action'] == 'list' exportclass += ' active' if params['controller'] == 'site' and params['action'] == 'export' traceclass += ' active' if params['controller'] == 'trace' - diaryclass += ' active' if params['controller'] == 'diary_entry' %>
  • <%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => t('layouts.view_tooltip'), :class => viewclass} %>
  • <%= link_to h(t('layouts.edit')) + ' ▾'.html_safe, {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => t('javascripts.site.edit_tooltip'), :class => editclass} %>
  • <%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list' }, {:id => 'historyanchor', :title => t('javascripts.site.history_tooltip'), :class => historyclass} %>
  • <%= link_to t('layouts.export'), {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => t('layouts.export_tooltip'), :class => exportclass} %>
  • <%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil}, {:id => 'traceanchor', :title => t('layouts.gps_traces_tooltip'), :class => traceclass} %>
  • -
  • <%= link_to t('layouts.user_diaries'), {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => t('layouts.user_diaries_tooltip'), :class => diaryclass} %>
  • @@ -106,12 +103,27 @@