]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitab...
[rails.git] / app / views / site / index.html.erb
index a69a6b4ee15ec931417cbbba9cdd763f4cc85329..d93b80b8a9acfbaa602613b73e79504c175f76e3 100644 (file)
 </noscript>
 
 <div id="map">
-<div id="permalink"><a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a></div>
+  <div id="permalink">
+    <a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
+    <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
+  </div>
 </div> 
 
 <div id="attribution">
@@ -139,8 +142,6 @@ end
     marker = addMarkerToMap(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>));
     <% end %>
 
-    map.events.register("zoomend", map, updateKey);
-
     map.events.register("moveend", map, updateLocation);
     map.events.register("changelayer", map, updateLocation);
     updateLocation();