]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/site.rhtml
way stuff
[rails.git] / app / views / layouts / site.rhtml
1 <html>
2   <head>
3     <%= javascript_include_tag 'main.js' %>
4     <!--[if IE]><%= javascript_include_tag 'pngfix.js' %><![endif]--> <!-- thanks, microsoft! -->
5     <%= javascript_include_tag 'tile.js' %>
6     <%= javascript_include_tag 'site.js' %>
7
8     <link rel="stylesheet" type="text/css" href="/stylesheets/site.css" />
9     <title>OpenStreetMap</title>
10   </head>
11   <body>
12
13     <div id="content">
14 <% if @flash[:notice] %>
15   <div id="notice"><%= @flash[:notice] %></div>
16 <% end %>
17
18     <%= @content_for_layout %>
19
20   </div>
21
22   <span id="greeting">
23     <% if @user %>
24       Welcome, <%= @user.email %> / 
25       <%= link_to 'Logout', {:controller => 'user', :action => 'logout'}, {:id => 'loginanchor'}%>
26     <% else %>
27       <%= link_to 'Login', {:controller => 'user', :action => 'login'}, {:id => 'loginanchor'}%> /
28       <%= link_to 'Sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
29     <% end %>
30   </span>
31   
32   <div>
33     <ul id="tabnav">
34       <!-- FIXME, these links need help -->
35       <% if @user %>
36         <li><%= link_to 'View', {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps' } %></li>
37         <li><%= link_to 'Edit', {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps' } %></li>
38         <li><%= link_to 'GPS traces', {:controller => 'trace', :action => 'index'}, {:id => 'traceanchor', :title => 'manage traces' } %></li>
39       <% else %>
40         <li><a id="viewanchor" href="/index.html" title="view maps">View</a></li>
41         <li><a style="font-style:italic" href="/login.html" title="edit maps">Edit</a></li>
42         <li><a href="/traces" title="manage traces">GPS traces</a></li>
43       <% end %>
44     </ul>
45   </div>
46
47   <div id="left">
48
49     <div id="logo">
50       <center>
51         <h1>OpenStreetMap</h1>
52         <img src="/images/osm_logo.png" width="120" height="120"/><br/>
53         <nobr><h2>The Free Wiki World Map</h2></nobr>
54       </center>
55     </div>
56     <% unless @user %>
57     <div id="intro">
58       OpenStreetMap is a free editable map of the whole world. It is made by people like you.
59       <p/>
60       OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.
61       <p/>
62       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>.
63     </div>
64     <% end %>
65
66     <div id="left_menu">
67       <a href="http://wiki.openstreetmap.org">Help & Wiki</a><br />
68       <a href="http://www.opengeodata.org/">News blog</a><br />
69       <a href="http://wiki.openstreetmap.org/index.php/Merchandise">Shop</a><br />
70       <center>
71
72         <script type="text/javascript"><!--
73           var detect = navigator.userAgent.toLowerCase();
74           if (detect.indexOf('msie') >= 0) {
75             document.write('<script type=\"text/javascript\"> google_ad_client = \"pub-7727744269903103\";  google_ad_width = 125;  google_ad_height = 125;  google_ad_format = \"125x125_as_rimg\";  google_cpa_choice = \"CAAQveHnzwEaCEiH5iXPqf1SKJe193M\";  </script>  <script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">  </script>');
76             }
77 //--></script>
78
79
80           </center>
81
82         </div>
83
84         <div id="cclogo">
85           <center>
86
87             <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
88               <input type="hidden" name="cmd" value="_s-xclick">
89               <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
90               <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
91               <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2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kiG9w0BAQEFAASBgJPpBf69pRAJfhzv/MfPiMncuq3TSlvpX7VtG9p4dXzSko4i2lWUDD72r5zdF2NwDgZ6avf630PutgpOzYJQ525If1xU2olc9DWI43UZTqY+FArgFuCJ8VnkPsy9mcbXPoSjLRqNwrsA2yoETxMISO3ASELzELJTJgpPk4bU57eZ-----END PKCS7-----">
92             </form>
93
94             <a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/images/cc_button.png" border="0"></a>
95
96           </center>
97         </div>
98
99       </div>
100     </body>
101   </html>