]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/index.rhtml
Link ways and nodes backwards and forwards.
[rails.git] / app / views / browse / index.rhtml
index d4a7b19ef06d53caeb8ca0c338a64c52d47e4760..2cd5cc9da4c09c1f46655033c93042bc0e94bb5f 100644 (file)
@@ -1 +1,12 @@
-Welcome to the browse subpages!
+<h2><%= @nodes.length %> Recently Changed Nodes</h2> 
+<ul>
+<% @nodes.each do |node| 
+   name = node.tags_as_hash['name'].to_s 
+   if name.length == 0:
+     name = "(No name)"
+   end
+   name = name + " - " + node.id.to_s 
+%>
+   <li><%= link_to h(name), :action => "node", :id => node.id %></li>
+<% end %>
+</ul>