]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_start.rhtml
Add recent nodes to start of tab, and return false from onclick actions
[rails.git] / app / views / browse / _start.rhtml
index 616cd7d024c11a9631274edc393a1d3fe701c5c4..10316c3833b565c3b0543c0922090f684508ee24 100644 (file)
   </div>
 
 <div id="status"></div>
-<div id="object"></div>
+<div id="object">
+<h3>Recent Changes</h3>
+<ul>
+<% @nodes.each do |node| %>
+<li><%= node.id %> @ <a href="#" onclick="setMapCenter(new OpenLayers.LonLat(<%= node.lon.to_s %>, <%= node.lat.to_s %>), 16); return false;"><%= node.lat.to_s %>,<%= node.lon.to_s %></a></li>
+<% end %>
+</ul>
+</div>
 </div>