2 <% cl = cycle('table0', 'table1') %>
9 <% if changeset.closed_at > DateTime.now %> (still editing)
10 <% else %><%= changeset.closed_at.strftime("%d %b %Y %H:%M") %><% end %>
15 <td class="<%= cl %>">
16 <% if changeset.user.data_public? %>
17 <%= link_to h(changeset.user.display_name), :controller => "user", :action => "view", :display_name => changeset.user.display_name %>
24 <td class="<%= cl %>">
25 <% if changeset.tags['comment'] %>
26 <%= h(changeset.tags['comment']) %>
32 <td class="<%= cl %>">
33 <% if changeset.min_lat.nil? %>
36 lat1 = changeset.min_lat/GeoRecord::SCALE.to_f
37 lat2 = changeset.max_lat/GeoRecord::SCALE.to_f
38 lon1 = changeset.min_lon/GeoRecord::SCALE.to_f
39 lon2 = changeset.max_lon/GeoRecord::SCALE.to_f
41 (<a href='/?lat=<%= lat1 %>&lon=<%= lon1 %>&zoom=14'><%= format("%0.3f",lat1) -%>,<%= format("%0.3f",lon1) -%></a>) to
42 (<a href='/?lat=<%= lat2 %>&lon=<%= lon2 %>&zoom=14'><%= format("%0.3f",lat2) -%>,<%= format("%0.3f",lon2) -%></a>)
46 <td class="<%= cl %>">
47 <%= link_to 'more', {:controller => 'browse', :action => 'changeset', :id => changeset.id}, {:title => 'View changeset details'} %>