]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Don't try and parse an empty string as a layer config, and cope a bit
[rails.git] / app / views / site / index.rhtml
index 94b24debf54d41162759c182f069ab03e29d8108..3e0400ce4dee689340b5a3081b5359bd6a0e53e7 100644 (file)
@@ -8,6 +8,14 @@
 <%= 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>You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.</p>
+  </div>
+</noscript>
+
 <div id="map">
 <div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
 </div> 
@@ -21,7 +29,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>
@@ -101,7 +109,7 @@ by the OpenStreetMap project and it's contributors.
     setMapCenter(centre, zoom);
     <% end %>
 
-    <% if layers %>
+    <% if !layers.empty? %>
     setMapLayers("<%= layers %>");
     <% end %>