2 changeset_data = {:id => changeset.id}
4 if changeset.has_valid_bbox?
5 bbox = changeset.bbox.to_unscaled
6 changeset_data[:bbox] = {
7 :minlon => bbox.min_lon,
8 :minlat => bbox.min_lat,
9 :maxlon => bbox.max_lon,
10 :maxlat => bbox.max_lat
15 <%= content_tag "ul", :class => 'changeset_item', :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
18 <span class="changeset_id">
21 {:controller => 'browse', :action => 'changeset', :id => changeset.id},
22 {:title => t('changeset.changeset.view_changeset_details')})
27 <% if changeset.closed_at > DateTime.now %> <%= t'changeset.changeset.still_editing' %>
28 <% else %><%= l changeset.closed_at, :format => :long %><% end %>
33 <% if changeset.user.data_public? %>
34 <%= link_to h(changeset.user.display_name), :controller => "changeset", :action => "list", :display_name => changeset.user.display_name %>
36 <i><%= t'changeset.changeset.anonymous' %></i>
42 <li class="comment deemphasize">
43 <% if changeset.tags['comment'].to_s != '' %>
44 <%= linkify(h(changeset.tags['comment'])) %>
46 <%= t'changeset.changeset.no_comment' %>