]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/site.html.erb
Localisation updates from http://translatewiki.net.
[rails.git] / app / views / layouts / site.html.erb
1 <!DOCTYPE html>
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 %>">
5     <h1 id="small-title">
6       <%= image_tag "osm_logo.png", :size => "16x16", :alt => t('layouts.logo.alt_text') %>
7       <%= t 'layouts.project_name.h1' %>
8     </h1>
9     <div id="left">
10       <div id="logo">
11         <%= link_to(image_tag("osm_logo.png",
12           :size => "120x120",
13           :alt => t('layouts.logo.alt_text')),
14           root_path) %>
15         <h1><%= t 'layouts.project_name.h1' %></h1>
16         <h2><%= t('layouts.tag_line') %></h2>
17       </div>
18       <%= yield :optionals %>
19       <% unless @user %>
20       <div class="sidebar-copy intro">
21         <p><%= t 'layouts.intro_1' %></p>
22         <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)
28         %>
29         </p>
30       </div>
31       <% end %>
32       <% if STATUS == :database_offline or STATUS == :api_offline %>
33       <div class="sidebar-alert">
34         <p><%= t 'layouts.osm_offline' %></p>
35       </div>
36       <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
37       <div class="sidebar-alert">
38         <p><%= t 'layouts.osm_read_only' %></p>
39       </div>
40       <% end %>
41       <ul id="left_menu" class="left_menu">
42         <li>
43           <h4><%= t'layouts.help' %></h4>
44           <ul>
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>
47           </ul>
48         </li>
49         <li>
50           <h4><%= t'layouts.community' %></h4>
51           <ul>
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')
56             }) %></li>
57           </ul>
58         </li>
59         <li>
60           <h4><%= t'layouts.data' %></h4>
61           <ul>
62             <li><%= link_to t('layouts.copyright'), copyright_path %></li>
63           </ul>
64           <ul>
65             <li><%= link_to t('layouts.export_data'), export_path %></li>
66           </ul>
67           <ul>
68             <li><%= link_to t('layouts.gps_traces'), traces_path %></li>
69           </ul>
70         </li>
71         <%= yield :left_menu %>
72       </ul>
73       <a title="<%= h(t('layouts.make_a_donation.title')) %>" href="http://donate.openstreetmap.org/" class="donate">
74         <span class='icon donate'></span>
75         <span><%= h(t('layouts.make_a_donation.text')) %></span>
76       </a>
77       <div class='sidebar-copy'>
78         <p class='deemphasize'><%= t 'layouts.partners_html',
79           :ucl => link_to(t('layouts.partners_ucl'), "http://www.vr.ucl.ac.uk"),
80           :ic => link_to(t('layouts.partners_ic'), "http://www.imperial.ac.uk/"),
81           :bytemark => link_to(t('layouts.partners_bytemark'), "http://www.bytemark.co.uk"),
82           :partners => link_to(t('layouts.partners_partners'), t('layouts.partners_url')) %>
83         </p>
84       </div>
85     </div>
86     <div id='top-bar'>
87       <% if @user and @user.id %>
88         <%= render :partial => "layouts/user_menu" %>
89       <% else %>
90         <ul class='secondary-actions' id='greeting'>
91           <li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath), {:id => 'loginanchor', :title => t('layouts.log_in_tooltip')} %></li>
92           <li><%= link_to t('layouts.sign_up'), user_new_path, {:id => 'registeranchor', :title => t('layouts.sign_up_tooltip')} %></li>
93         </ul>
94       <% end %>
95       <ul id="tabnav">
96         <li id="view_tab">
97           <%= link_to t('layouts.view'), root_path, :class => 'tab geolink llz layers' %>
98         </li><li id="edit_tab">
99           <%= render :partial => 'layouts/edit_menu',
100                      :locals => { :link_text => t('layouts.edit'), :link_class => 'llz object' }%>
101         </li><li id="history_tab">
102           <%= link_to t('layouts.history'), browse_changesets_path, :class => 'tab geolink bbox' %>
103         </li>
104       </ul>
105     </div>
106     <div class="wrapper">
107       <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
108       <% if content_for? :heading %>
109       <div class="content-heading">
110         <%= yield :heading %>
111       </div>
112       <% end %>
113       <div id="content" class="clearfix">
114         <%= yield %>
115       </div>
116     </div>
117     <% if defined?(PIWIK) -%>
118     <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" style="border:0" alt="" /></p></noscript>
119     <% end -%>
120   </body>
121 </html>