-<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)"
+<h2><%= @changesets.length %> Recently Closed Changesets</h2>
+<ul id="recently_changed">
+<% @changesets.each do |changeset|
+ if changeset.user.data_public?
+ user = changeset.user.display_name
+ else
+ user = "(anonymous)"
end
- name = name + " - " + node.id.to_s
+
+ cmt = changeset.tags_as_hash['comment'].to_s
+ cmt = "(no comment)" if cmt.length == 0
+ text = "#{changeset.id} by #{user} - #{cmt}"
%>
- <li><%= link_to h(name), :action => "node", :id => node.id %></li>
+ <li><%= link_to h(text), :action => "changeset", :id => changeset.id %></li>
<% end %>
</ul>