1 <header class="closed">
3 <a href="<%= root_path %>" class="geolink">
5 <source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml"></source>
6 <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
8 <%= t 'layouts.project_name.h1' %>
11 <a href="#" id="menu-icon"></a>
13 <%= content_for :header %>
15 <li id="edit_tab" class="dropdown <%= current_page_class(edit_path) %>">
16 <%= link_to t('layouts.edit'), edit_path, :class => "tab geolink editlink",
18 :data => { :editor => preferred_editor }
19 %><a class='dropdown-toggle' data-toggle='dropdown' href='#'><b class="caret"></b></a>
20 <ul class='dropdown-menu'>
21 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
23 <%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
24 edit_path(:editor => editor),
25 :data => { :editor => editor },
26 :class => "geolink editlink" %>
31 <li id="history_tab" class="<%= current_page_class(history_path) %>">
32 <%= link_to t('layouts.history'), history_path, :class => 'tab geolink' %>
34 <li id="export_tab" class="<%= current_page_class(export_path) %>">
35 <%= link_to t('layouts.export'), export_path, :class => 'tab geolink' %>
39 <nav class='secondary'>
41 <% if @user and ( @user.administrator? or @user.moderator? ) %>
42 <li class="compact-hide <%= current_page_class(issues_path) %>"><%= link_to t('layouts.issues'), issues_path %></li>
44 <li class="compact-hide <%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>
45 <li class="compact-hide <%= current_page_class(diary_path) %>"><%= link_to t('layouts.user_diaries'), diary_path %></li>
46 <li class="compact-hide <%= current_page_class(copyright_path) %>"><%= link_to t('layouts.copyright'), copyright_path %></li>
47 <li class="compact-hide <%= current_page_class(help_path) %>"><%= link_to t('layouts.help'), help_path %></li>
48 <li class="compact-hide <%= current_page_class(about_path) %>"><%= link_to t('layouts.about'), about_path %></li>
49 <li id="compact-secondary-nav" class="dropdown">
50 <a class="dropdown-toggle" data-toggle="dropdown" href="#"><%= t 'layouts.more' %> <b class="caret"></b></a>
51 <ul class="dropdown-menu">
52 <li class="<%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>
53 <li class="<%= current_page_class(diary_path) %>"><%= link_to t('layouts.user_diaries'), diary_path %></li>
54 <li class="<%= current_page_class(copyright_path) %>"><%= link_to t('layouts.copyright'), copyright_path %></li>
55 <li class="<%= current_page_class(help_path) %>"><%= link_to t('layouts.help'), help_path %></li>
56 <li class="<%= current_page_class(about_path) %>"><%= link_to t('layouts.about'), about_path %></li>
60 <% if @user && @user.id %>
61 <div class='dropdown user-menu logged-in'>
62 <a class='dropdown-toggle' data-toggle='dropdown' href="#">
63 <%= user_thumbnail_tiny(@user, :size => 25, :width => 25, :height => 25)
64 %><%= render :partial => 'layouts/inbox'
65 %><span class="user-button"><span class='username'><%= @user.display_name %></span>
66 <b class="caret"></b></span>
68 <ul class='dropdown-menu'>
70 <%= link_to inbox_path(:display_name => @user.display_name) do %>
71 <span class='count-number'><%= number_with_delimiter(@user.new_messages.size) %></span>
72 <%= t('user.view.my messages') %>
76 <%= link_to t('user.view.my profile'), user_path(:display_name => @user.display_name) %>
79 <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %>
81 <li class="divider"></li>
83 <%= yield :greeting %>
86 <%= link_to t('layouts.logout'), logout_path(:session => request.session_options[:id], :referer => request.fullpath) %>
91 <ul class="user-menu clearfix">
92 <li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath) %></li>
93 <li><%= link_to t('layouts.sign_up'), user_new_path %></li>