]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Showing a nice message for browsers with javascript disabled. closes #36
[rails.git] / app / views / site / index.rhtml
index 46bc3bdd7ee80f9b2ba013a88a5a0873f5d97b19..f924f7a1431e8f3a4b7b301eb0da0c6dfad2250c 100644 (file)
@@ -8,6 +8,10 @@
 <%= render :partial => 'key' %>
 <%= render :partial => 'search' %>
 
+<noscript><div id="noscript"><p>You are either using a browser that doesn't support javascript, or you have disabled javascript.</p>
+<p>OpenStreetMap uses javascript for its slippy map.</p>
+<p>Try the <a href="http://tah.openstreetmap.org/Browse/">OpenStreetMap static tile browser</a>.</p></div></noscript>
+
 <div id="map">
 <div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
 </div> 
@@ -21,7 +25,7 @@
 <tr>
 <td colspan="2" align="center">
 Licensed under the Creative Commons Attribution-Share Alike 2.0 license
-by the OpenStreetMap project and it's contributors.
+by the OpenStreetMap project and its contributors.
 </td>
 </table>
 </div>
@@ -180,5 +184,9 @@ by the OpenStreetMap project and it's contributors.
 
   window.onload = handleResize;
   window.onresize = handleResize;
+
+  <% if params['action'] == 'export' %>
+  <%= remote_function :url => { :controller => 'export', :action => 'start' } %>
+  <% end %>
 // -->
 </script>