1 <% content_for :head do %>
2 <%= javascript_include_tag "index" %>
5 <% content_for(:body_class) { "map-layout" } %>
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"),
12 :class => "set_position dropdown-item",
13 :data => { :lat => current_user.home_lat,
14 :lon => current_user.home_lon,
19 <% content_for :header do %>
20 <%= render :partial => "layouts/search", :locals => { :autofocus => false } %>
23 <% content_for :content do %>
25 <%= render :partial => "layouts/search", :locals => { :autofocus => true } %>
28 <%= render :partial => "layouts/flash" %>
31 <div id="browse_status"></div>
33 <div id="sidebar_loader">
34 <img alt="<%= t("browse.start_rjs.loading") %>" class="loader" src="<%= image_path("searching.gif") %>">
37 <div id="sidebar_content">
41 <% unless current_user %>
42 <div class="welcome p-3">
43 <%= render "sidebar_header", :title => t("layouts.intro_header") %>
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 :fastly => link_to(t("layouts.partners_fastly"), "https://www.fastly.com/"),
49 :bytemark => link_to(t("layouts.partners_bytemark"), "https://www.bytemark.co.uk"),
50 :partners => link_to(t("layouts.partners_partners"), "https://hardware.openstreetmap.org/thanks/") %>
52 <div class="d-flex mx-n1">
53 <div class="w-50 px-1">
54 <a class="btn btn-primary w-100" href="<%= about_path %>"><%= t("layouts.learn_more") %></a>
56 <div class="w-50 px-1">
57 <a class="btn btn-primary w-100" href="<%= user_new_path %>"><%= t("layouts.start_mapping") %></a>
65 <%= render :partial => "layouts/banner" %>
71 <p><%= t "site.index.js_1" %></p>
72 <p><%= t "site.index.js_2" %></p>
79 <div id="map" tabindex="2">
82 <div id="attribution">
85 <td class="attribution_license"><%= t "site.index.license.license_url" %></td>
86 <td class="attribution_project"><%= t "site.index.license.project_url" %></td>
89 <td colspan="2" class="attribution_notice"><%= t "site.index.license.copyright" %></td>
95 <%= render :template => "layouts/site" %>