]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/map.html.erb
Use i18n for submit button for issue comments
[rails.git] / app / views / layouts / map.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "index" %>
3 <% end %>
4
5 <% content_for(:body_class) { "map-layout" } %>
6
7 <% if current_user and !current_user.home_lon.nil? and !current_user.home_lat.nil? %>
8   <% content_for :greeting do %>
9     <%= link_to t("layouts.home"),
10                 "#",
11                 :id => "homeanchor",
12                 :class => "set_position",
13                 :data => { :lat => current_user.home_lat,
14                            :lon => current_user.home_lon,
15                            :zoom => 15 } %>
16   <% end %>
17 <% end %>
18
19 <% content_for :header do %>
20   <%= render :partial => "layouts/search", :locals => { :autofocus => false } %>
21 <% end %>
22
23 <% content_for :content do %>
24   <div id="sidebar">
25     <%= render :partial => "layouts/search", :locals => { :autofocus => true } %>
26
27     <div id="flash">
28       <%= render :partial => "layouts/flash" %>
29     </div>
30
31     <div id="browse_status"></div>
32
33     <div id="sidebar_loader">
34       <img alt="<%= t("browse.start_rjs.loading") %>" class="loader" src="<%= image_path("searching.gif") %>">
35     </div>
36
37     <div id="sidebar_content">
38       <%= yield %>
39     </div>
40
41     <% unless current_user %>
42       <div class="welcome">
43         <h2><%= t "layouts.intro_header" %></h2>
44         <div class="close-wrap"><span class="icon close"></span></div>
45         <p><%= t "layouts.intro_text" %></p>
46         <p><%= t "layouts.hosting_partners_html",
47                  :ucl => link_to(t("layouts.partners_ucl"), "https://www.ucl.ac.uk"),
48                  :bytemark => link_to(t("layouts.partners_bytemark"), "https://www.bytemark.co.uk"),
49                  :partners => link_to(t("layouts.partners_partners"), "https://hardware.openstreetmap.org/thanks/") %>
50         </p>
51         <a class="button learn-more" href="<%= about_path %>"><%= t("layouts.learn_more") %></a>
52         <a class="button sign-up" href="<%= user_new_path %>"><%= t("layouts.start_mapping") %></a>
53       </div>
54     <% end %>
55
56     <div id="banner">
57       <%= render :partial => "layouts/banner" %>
58     </div>
59   </div>
60
61   <noscript>
62     <div id="noscript">
63       <p><%= t "site.index.js_1" %></p>
64       <p><%= t "site.index.js_2" %></p>
65     </div>
66   </noscript>
67
68   <div id="map-ui">
69   </div>
70
71   <div id="map" tabindex="2">
72   </div>
73
74   <div id="attribution">
75     <table>
76       <tr>
77         <td class="attribution_license"><%= t "site.index.license.license_url" %></td>
78         <td class="attribution_project"><%= t "site.index.license.project_url" %></td>
79       </tr>
80       <tr>
81         <td colspan="2" class="attribution_notice"><%= t "site.index.license.copyright" %></td>
82       </tr>
83     </table>
84   </div>
85 <% end %>
86
87 <%= render :template => "layouts/site" %>