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 :content do %>
21 <%= render :partial => "layouts/search" %>
23 <% if STATUS == :database_offline or STATUS == :api_offline %>
24 <p class="error"><%= t 'layouts.osm_offline' %></p>
25 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
26 <p class="error"><%= t 'layouts.osm_read_only' %></p>
29 <div id="browse_status"></div>
31 <div id="sidebar_content">
32 <%= render :partial => "layouts/flash" %>
39 <p><%= t 'site.index.js_1' %></p>
40 <p><%= t 'site.index.js_2' %></p>
47 <div id="map" tabindex="2">
50 <div id="attribution">
53 <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
54 <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
57 <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>
63 <%= render :template => 'layouts/site' %>