Adding new browse controller test, which is mostly stubs just now. Also adding the...
[rails.git] / app / views / browse / index.rhtml
index d4a7b19ef06d53caeb8ca0c338a64c52d47e4760..e9d830a1063d511fc43e0a81a2adcb172e70c128 100644 (file)
@@ -1 +1,12 @@
-Welcome to the browse subpages!
+<h2><%= @nodes.length %> Recently Changed Nodes</h2> 
+<ul id="recently_changed">
+<% @nodes.each do |node| 
+   name = node.tags_as_hash['name'].to_s 
+   if name.length == 0:
+     name = "(No name)"
+   end
+   name = "#{name} - #{node.id} (#{node.version})"
+%>
+   <li><%= link_to h(name), :action => "node", :id => node.id %></li>
+<% end %>
+</ul>