1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <%= javascript_include_tag 'prototype' %>
5 <%= javascript_include_tag 'site' %>
6 <!--[if lt IE 7]><%= javascript_include_tag 'pngfix' %><![endif]--> <!-- thanks, microsoft! -->
7 <%= stylesheet_link_tag 'site' %>
8 <%= stylesheet_link_tag 'print', :media => "print" %>
9 <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
10 <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
12 <title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>
16 <% if @notice || flash[:notice] %>
17 <div id="notice"><%= @notice || flash[:notice] %></div>
24 <% if @user and @user.id %>
25 <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}) %> |
26 <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
27 <%= yield :greeting %>
28 <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
29 <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
31 <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
32 <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
44 viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
45 editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
46 historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list_bbox'
47 exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
48 traceclass = 'active' if params['controller'] == 'trace'
49 diaryclass = 'active' if params['controller'] == 'diary_entry'
51 <li><%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %></li>
52 <li><%= link_to t('layouts.edit'), {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %></li>
53 <li><%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list_bbox' }, {:id => 'historyanchor', :title => 'changeset history', :class => historyclass} %></li>
54 <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>
55 <li><%= link_to_remote t('layouts.export'), {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %></li>
57 <li><%= link_to t('layouts.export'), {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass} %></li>
59 <li><%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %></li>
60 <li><%= link_to t('layouts.user_diaries'), {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %></li>
68 <h1>OpenStreetMap</h1>
69 <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %><br/>
70 <h2 class="nowrap"><%= t('layouts.tag_line') %></h2>
77 <%= t 'layouts.intro_1' %>
80 <%= t 'layouts.intro_2' %>.
83 <%= t 'layouts.intro_3',
84 :ucl => '<a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a>',
85 :bytemark => '<a href="http://www.bytemark.co.uk">bytemark</a>' %>
90 <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
92 <%= t 'layouts.offline' %>
94 <% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
96 <%= t 'layouts.read_only' %>
100 <div id="donate" class="notice">
101 <%= t 'layouts.donate', :link => "<a href=\"http://donate.openstreetmap.org/\">#{t('layouts.donate_link_text')}</a>" %>
105 <div id="left_menu" class="left_menu">
106 <a href="http://wiki.openstreetmap.org"><%= t 'layouts.help_wiki' %></a><br />
107 <a href="http://www.opengeodata.org/"><%= t 'layouts.news_blog' %></a><br />
108 <a href="http://wiki.openstreetmap.org/index.php/Merchandise"><%= t 'layouts.shop' %></a><br />
109 <%= yield :left_menu %>
112 <div id="sotm" class="notice">
113 <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm'), :title => t('layouts.sotm'), :border => "0"), "http://www.stateofthemap.org/" %>
116 <%= yield :optionals %>
119 <div class="button" style="width: 115px">
120 <a href="http://donate.openstreetmap.org/"><img src="/images/donate.png" border="0" alt="<%= t 'layouts.alt_donation' %>" title="<%= t 'layouts.alt_donation' %>" /></a>
123 <div id="cclogo" class="button" style="width: 88px">
124 <%= link_to image_tag("cc_button.png", :alt => "CC by-sa 2.0", :border => "0"), "http://creativecommons.org/licenses/by-sa/2.0/" %>