X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6df7fdbb9eb563f8ccf68f24c3d210b27c93cd83..76708eefcffb6b451ce9c275db4bcaf23690f69d:/app/views/browse/index.rhtml?ds=inline
diff --git a/app/views/browse/index.rhtml b/app/views/browse/index.rhtml
index e9d830a10..fa7e13ac0 100644
--- a/app/views/browse/index.rhtml
+++ b/app/views/browse/index.rhtml
@@ -1,12 +1,16 @@
-
<%= @nodes.length %> Recently Changed Nodes
+<%= @changesets.length %> Recently Closed Changesets
-<% @nodes.each do |node|
- name = node.tags_as_hash['name'].to_s
- if name.length == 0:
- name = "(No name)"
+<% @changesets.each do |changeset|
+ if changeset.user.data_public?
+ user = changeset.user.display_name
+ else
+ user = "(anonymous)"
end
- name = "#{name} - #{node.id} (#{node.version})"
+
+ 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 %>