]> 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 d4a7b19ef06d53caeb8ca0c338a64c52d47e4760..fa7e13ac079916c3b268105d7805b2bb48a73792 100644 (file)
@@ -1 +1,16 @@
-Welcome to the browse subpages!
+<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
+   
+   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(text), :action => "changeset", :id => changeset.id %></li>
+<% end %>
+</ul>