]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/site.rhtml
link to 'no subject' if message title/subject is blank
[rails.git] / app / views / layouts / site.rhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html>
3   <head>
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     <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
9     <title>OpenStreetMap<%= ' | '+@title if @title %></title>
10   </head>
11   <body>
12     <div id="content">
13       <% if flash[:notice] %>
14         <div id="notice"><%= flash[:notice] %></div>
15       <% end %>
16
17       <%= yield %>
18     </div>
19
20     <span id="greeting">
21       <% if @user and @user.id %>
22         Welcome, <%= link_to @user.display_name, {:controller => 'user', :action => 'view', :display_name => @user.display_name}%> | 
23         <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
24         <%= yield :greeting %>
25         <%= link_to "inbox (#{@user.new_messages.size})", {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
26         <%= link_to 'logout', {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
27       <% else %>
28         <%= link_to 'log in', {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
29         <%= link_to 'sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
30       <% end %>
31     </span>
32
33     <div>
34       <ul id="tabnav">
35         <%
36         viewclass = ''
37         editclass = ''
38         traceclass = ''
39         viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index' 
40         editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit' 
41         editclass = 'active' if params['controller'] == 'campaign'
42         traceclass = 'active' if params['controller'] == 'trace'
43         %>
44         <li><%= link_to 'View', {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass  } %></li>
45         <li><%= link_to 'Edit', {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass } %></li>
46         <li><%= link_to 'GPS traces', {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass } %></li>
47       </ul>
48     </div>
49
50     <div id="left">
51
52       <div id="logo">
53         <center>
54           <h1>OpenStreetMap</h1>
55           <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %><br/>
56           <h2 class="nowrap">The Free Wiki World Map</h2>
57         </center>
58       </div>
59
60       <% unless @user %>
61       <div id="intro">
62         OpenStreetMap is a free editable map of the whole world. It is made by people like you.
63         <p/>
64         OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.
65         <p/>
66         OpenStreetMap's hosting is kindly supported by the <a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a> and <a href="http://www.bytemark.co.uk">bytemark</a>.
67       </div>
68       <% end %>
69
70       <% if API_READONLY %>
71       <div id="alert">
72         The OpenStreetMap database is currently in read-only mode while
73         essential database maintenance work is carried out.
74       </div>
75       <% end %>
76
77       <div id="left_menu" class="left_menu">
78         <a href="http://wiki.openstreetmap.org">Help &amp; Wiki</a><br />
79         <%= link_to "Users' diaries", {:controller => 'diary_entry', :action => 'list', :display_name => nil} %><br />
80         <a href="http://www.opengeodata.org/">News blog</a><br />
81         <a href="http://wiki.openstreetmap.org/index.php/Merchandise">Shop</a><br />
82         <%= yield :left_menu %>
83       </div>
84
85       <%= yield :optionals %>
86       <div id="cclogo">
87         <center>
88
89           <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
90             <input type="hidden" name="cmd" value="_s-xclick" />
91             <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" style="border: none;" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
92             <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
93             <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCsNDDDDa7OZFojBzDvG4HSPXOiJSO3VNuLoc8HGwsds3LsZYYtv4cPGw7Z/SoVVda+RELM+5FQn0D3Kv7hjA2Z6QdwEkFH2kDDlXCvyPt53ENHkQrzC1KOueRpimsQMH5hl03nvuVXij0hEYlMFqTH0UZr80vyczB+lJU6ZKYtrDELMAkGBSsOAwIaBQAwgcwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIZa12CIRB0geAgahqF6Otz0oY0+Wg56fSuEpZvbUmNGEQznjWqBXkJqTkZT0jOwekOrlEi7bNEU8yVIie2u5L1gOhBDSl6rmgpxxVURSa4Jig5qiSioyK5baH6HjXVPQ+MDEWg1gZ4LtjYYtroZ8SBE/1eikQWmG7EOEgU62Vn/jqJJ77/mgS7mdEQhlEWYMiyJBZs35yCB/pK5FUxhZnrquL4sS+2QKHPPOGPDfRc/dnhMKgggOHMIIDgzCCAuygAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHD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TW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNjA4MjYwODQ2NDdaMCMGCSqGSIb3DQEJBDEWBBTyC1ZchvuTMtcYeudPPSP/w8HiEDANBgkqhkiG9w0BAQEFAASBgJPpBf69pRAJfhzv/MfPiMncuq3TSlvpX7VtG9p4dXzSko4i2lWUDD72r5zdF2NwDgZ6avf630PutgpOzYJQ525If1xU2olc9DWI43UZTqY+FArgFuCJ8VnkPsy9mcbXPoSjLRqNwrsA2yoETxMISO3ASELzELJTJgpPk4bU57eZ-----END PKCS7-----" />
94           </form>
95
96           <a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/images/cc_button.png" border="0" alt="" /></a>
97
98         </center>
99       </div>
100
101     </div>
102   </body>
103 </html>