X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/936a005f9f3757508a06eaa930d5e5c4efcfbe40..56df4f3813a12a56d9352e5439423de78ed0c7b7:/app/views/layouts/site.html.erb?ds=sidebyside diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index df99b51da..3a8e1f1c0 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -33,6 +33,7 @@ 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' @@ -43,17 +44,13 @@
  • <%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => t('layouts.view_tooltip'), :class => viewclass} %>
  • <%= link_to t('layouts.edit') + ' ▾', {: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} %>
  • - <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %> -
  • <%= link_to_remote t('layouts.export'), {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => t('layouts.export_tooltip'), :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>
  • - <% else %>
  • <%= link_to t('layouts.export'), {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => t('layouts.export_tooltip'), :class => exportclass} %>
  • - <% end %>
  • <%= 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} %>
  • -
    +
    @@ -122,15 +119,14 @@
    -
    - <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm2011'), :title => t('layouts.sotm2011'), :border => "0"), "http://stateofthemap.org/register-now/" %> -
    -
    + <% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) -%> + <%= render :partial => "layouts/piwik" %> + <% end -%>