X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5620d7263a36fe842f4d97bc21dda5edd0651b37..76708eefcffb6b451ce9c275db4bcaf23690f69d:/app/views/browse/index.rhtml?ds=inline
diff --git a/app/views/browse/index.rhtml b/app/views/browse/index.rhtml
index 2cd5cc9da..fa7e13ac0 100644
--- a/app/views/browse/index.rhtml
+++ b/app/views/browse/index.rhtml
@@ -1,12 +1,16 @@
-
<%= @nodes.length %> Recently Changed Nodes
-
-<% @nodes.each do |node|
- name = node.tags_as_hash['name'].to_s
- if name.length == 0:
- name = "(No name)"
+<%= @changesets.length %> Recently Closed Changesets
+
+<% @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}"
%>
- - <%= link_to h(name), :action => "node", :id => node.id %>
+ - <%= link_to h(text), :action => "changeset", :id => changeset.id %>
<% end %>