2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>" lang="<%= I18n.locale %>" dir="<%= dir %>">
3 <%= render :partial => "layouts/head" %>
4 <body class="<%= body_class %>">
6 <%= image_tag "osm_logo.png", :size => "16x16", :alt => t('layouts.logo.alt_text') %>
7 <%= t 'layouts.project_name.h1' %>
11 <%= link_to(image_tag("osm_logo.png",
13 :alt => t('layouts.logo.alt_text')),
15 <h1><%= t 'layouts.project_name.h1' %></h1>
16 <h2><%= t('layouts.tag_line') %></h2>
18 <%= yield :optionals %>
20 <div class="sidebar-copy intro">
21 <p><%= t 'layouts.intro_1' %></p>
23 <%= t 'layouts.intro_2_html',
24 :download => link_to(t('layouts.intro_2_download'), "http://planet.openstreetmap.org/"),
25 :use => link_to(t('layouts.intro_2_use'), t('layouts.intro_2_use_url')),
26 :license => link_to(t('layouts.intro_2_license'), copyright_path),
27 :create_account => link_to(t('layouts.intro_2_create_account'), user_new_path)
32 <% if STATUS == :database_offline or STATUS == :api_offline %>
33 <div class="sidebar-alert">
34 <p><%= t 'layouts.osm_offline' %></p>
36 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
37 <div class="sidebar-alert">
38 <p><%= t 'layouts.osm_read_only' %></p>
41 <ul id="left_menu" class="left_menu">
43 <h4><%= t'layouts.help' %></h4>
45 <li><%= link_to(t('layouts.help_centre'), t('layouts.help_url'), :title => t('layouts.help_title')) %></li>
46 <li><%= link_to(t('layouts.documentation'), t('layouts.wiki_url'), :title => t('layouts.documentation_title')) %></li>
50 <h4><%= t'layouts.community' %></h4>
52 <li><a href="http://blogs.openstreetmap.org/" title="<%= t 'layouts.community_blogs_title' %>"><%= t 'layouts.community_blogs' %></a></li>
53 <li><a href="http://www.osmfoundation.org" title="<%= t 'layouts.foundation_title' %>"><%= t 'layouts.foundation' %></a></li>
54 <li><%= link_to(t('layouts.user_diaries'), diary_path, {
55 :title => t('layouts.user_diaries_tooltip')
60 <h4><%= t'layouts.data' %></h4>
62 <li><%= link_to t('layouts.copyright'), copyright_path %></li>
65 <li><%= link_to t('layouts.export_data'), export_path %></li>
68 <li><%= link_to t('layouts.gps_traces'), traces_path %></li>
71 <%= yield :left_menu %>
73 <div class='ad-container inner11'>
75 <%= ad = [{:image => 'sotm-birmingham-ad.png',
76 :title => 'State of the Map Birmingham',
77 :href =>'http://stateofthemap.org/'},
78 {:image => 'donate-ad.png',
79 :title => 'Server Donation Drive',
80 :href =>'http://donate.openstreetmap.org/'}].sample
82 link_to ad[:href], :title => ad[:title] do
83 image_tag ad[:image], :class => :ad
88 <a title="<%= h(t('layouts.make_a_donation.title')) %>" href="http://donate.openstreetmap.org/" class="donate">
89 <span class='icon donate'></span>
90 <span><%= h(t('layouts.make_a_donation.text')) %></span>
92 <div class='sidebar-copy'>
93 <p class='deemphasize'><%= t 'layouts.partners_html',
94 :ucl => link_to(t('layouts.partners_ucl'), "http://www.vr.ucl.ac.uk"),
95 :ic => link_to(t('layouts.partners_ic'), "http://www.imperial.ac.uk/"),
96 :bytemark => link_to(t('layouts.partners_bytemark'), "http://www.bytemark.co.uk"),
97 :partners => link_to(t('layouts.partners_partners'), t('layouts.partners_url')) %>
102 <% if @user and @user.id %>
103 <%= render :partial => "layouts/user_menu" %>
105 <ul class='secondary-actions' id='greeting'>
106 <li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath), {:id => 'loginanchor', :title => t('layouts.log_in_tooltip')} %></li>
107 <li><%= link_to t('layouts.sign_up'), user_new_path, {:id => 'registeranchor', :title => t('layouts.sign_up_tooltip')} %></li>
112 <%= link_to t('layouts.view'), root_path, :class => 'tab geolink llz layers' %>
113 </li><li id="edit_tab">
114 <%= render :partial => 'layouts/edit_menu',
115 :locals => { :link_text => t('layouts.edit'), :link_class => 'llz object' }%>
116 </li><li id="history_tab">
117 <%= link_to t('layouts.history'), browse_changesets_path, :class => 'tab geolink bbox' %>
121 <div class="wrapper">
122 <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
123 <% if content_for? :heading %>
124 <div class="content-heading">
125 <%= yield :heading %>
128 <div id="content" class="clearfix">
132 <% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) -%>
133 <noscript><p><img src="<%= request.protocol %><%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>