]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/index.rhtml
removed comments which apparently no-one bothers to read anyway. since no-one reads...
[rails.git] / app / views / browse / index.rhtml
index 2cd5cc9da4c09c1f46655033c93042bc0e94bb5f..fa7e13ac079916c3b268105d7805b2bb48a73792 100644 (file)
@@ -1,12 +1,16 @@
-<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>