]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
add support for displaying history
[rails.git] / app / views / site / index.rhtml
index 46bc3bdd7ee80f9b2ba013a88a5a0873f5d97b19..fa31d848ba2f3ab39806270f5e63a1360c366cb5 100644 (file)
@@ -9,6 +9,7 @@
 <%= render :partial => 'search' %>
 
 <div id="map">
+<div id="datalink"><%= link_to_remote 'See Data', {:url => {:controller => 'browse', :action => 'start'}}, {:href => url_for( {:controller => 'browse', :action => 'index'}), :id => 'browseanchor', :title => 'browse data'} %></div>
 <div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
 </div> 
 
@@ -180,5 +181,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>