1 <% content_for :head do %>
2 <%= javascript_include_tag "index" %>
5 <% content_for(:body_class) { "map-layout" } %>
7 <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
8 <% content_for :greeting do %>
9 <%= link_to t("layouts.home"),
12 :class => "set_position",
13 :data => { :lat => @user.home_lat,
14 :lon => @user.home_lon,
19 <% content_for :header do %>
20 <%= render :partial => "layouts/search" %>
23 <% content_for :content do %>
25 <%= render :partial => "layouts/search" %>
27 <% if STATUS == :database_offline or STATUS == :api_offline %>
28 <p class="error"><%= t 'layouts.osm_offline' %></p>
29 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
30 <p class="error"><%= t 'layouts.osm_read_only' %></p>
33 <div id="browse_status"></div>
35 <div id="sidebar_loader" style="display: none;">
36 <img alt="<%= t('browse.start_rjs.loading') %>" class="loader" src="<%= image_path("searching.gif") %>">
39 <div id="sidebar_content">
40 <%= render :partial => "layouts/flash" %>
46 <h2><%= t 'layouts.intro_header' %></h2>
47 <p><%= t 'layouts.intro_text' %></p>
48 <a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
49 <a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.start_mapping') %></a>
56 <p><%= t 'site.index.js_1' %></p>
57 <p><%= t 'site.index.js_2' %></p>
64 <div id="map" tabindex="2">
67 <div id="attribution">
70 <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
71 <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
74 <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>
80 <%= render :template => 'layouts/site' %>