Adding new browse controller test, which is mostly stubs just now. Also adding the version number of the recently changed nodes in the data browser.

This commit is contained in:
Shaun McDonald 2008-10-21 16:18:18 +00:00
parent e13b35e0cb
commit 6df7fdbb9e
2 changed files with 79 additions and 2 deletions

View file

@ -1,11 +1,11 @@
<h2><%= @nodes.length %> Recently Changed Nodes</h2>
<ul>
<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.to_s
name = "#{name} - #{node.id} (#{node.version})"
%>
<li><%= link_to h(name), :action => "node", :id => node.id %></li>
<% end %>