]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node.rhtml
add navigation link
[rails.git] / app / views / browse / node.rhtml
index 2a8fd56d9eeae280140f2535a67e48ee167c28c7..c050cf00269983835f7239282494d05c4014eb49 100644 (file)
@@ -1,3 +1,15 @@
+<%= render :partial => 'navigation', :locals => { :type => "node" } %>
 <h2>Node Browser: <%= h(@name) %></h2>
 <%= render :partial => 'common', :locals => { :obj => @node, :type => "node" } %>
 <%= render :partial => 'tag_table', :locals => { :tags => @node.tags_as_hash } %>
 <h2>Node Browser: <%= h(@name) %></h2>
 <%= render :partial => 'common', :locals => { :obj => @node, :type => "node" } %>
 <%= render :partial => 'tag_table', :locals => { :tags => @node.tags_as_hash } %>
+<% if @node.ways.length != 0 %> 
+  <br style="clear:both" />
+  <div style="float:right; width: 250px;">
+  <h2>Part of:</h2>
+  <ul>
+    <% @node.ways.each do |way| %>
+    <li> <%= link_to "Way " + way.id.to_s, :action => "way", :id => way.id.to_s %> </li>
+    <% end %>
+  </ul>
+  </div>
+<% end %>