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 Welcome, <%= 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 "inbox (#{@user.new_messages.size})", {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
29 <%= link_to 'logout', {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
31 <%= link_to 'log in', {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
32 <%= link_to 'sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
43 viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
44 editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
45 exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
46 traceclass = 'active' if params['controller'] == 'trace'
47 diaryclass = 'active' if params['controller'] == 'diary_entry'
49 <li><%= link_to 'View', {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %></li>
50 <li><%= link_to 'Edit', {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %></li>
51 <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>
52 <li><%= link_to_remote 'Export', {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %></li>
54 <li><%= link_to 'Export', {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass} %></li>
56 <li><%= link_to 'GPS Traces', {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %></li>
57 <li><%= link_to 'User Diaries', {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %></li>
65 <h1>OpenStreetMap</h1>
66 <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %><br/>
67 <h2 class="nowrap">The Free Wiki World Map</h2>
74 OpenStreetMap is a free editable map of the whole world. It
75 is made by people like you.
78 OpenStreetMap allows you to view, edit and use geographical
79 data in a collaborative way from anywhere on Earth.
82 OpenStreetMap's hosting is kindly supported by the
83 <a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a> and
84 <a href="http://www.bytemark.co.uk">bytemark</a>.
89 <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
91 The OpenStreetMap database is currently offline while
92 essential database maintenance work is carried out.
94 <% elsif OSM_STATUS == :api_readonly %>
96 The OpenStreetMap database is currently in read-only mode while
97 essential database maintenance work is carried out.
103 Support OpenStreetMap by
104 <a href="http://donate.openstreetmap.org/">donating</a>
105 to the Hardware Upgrade Fund.
109 <div id="left_menu" class="left_menu">
110 <a href="http://wiki.openstreetmap.org">Help & Wiki</a><br />
111 <a href="http://www.opengeodata.org/">News blog</a><br />
112 <a href="http://wiki.openstreetmap.org/index.php/Merchandise">Shop</a><br />
113 <%= yield :left_menu %>
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="Make a 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/" %>