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 "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
16 <%= link_to(changeset.id, changeset_path(changeset.id), :class => :changeset_id) %>
19 <% if changeset.closed_at > DateTime.now %>
20 <%= t 'changeset.changeset.still_editing' %>
22 <%= l changeset.closed_at, :format => :long %>
26 <% unless params.key?(:display_name) %>
28 <% if changeset.user.data_public? %>
29 <%= link_to changeset.user.display_name, user_path(changeset.user.display_name) %>
31 <i><%= t 'changeset.changeset.anonymous' %></i>
36 <p class="comment deemphasize">
37 <% if changeset.tags['comment'].to_s != '' %>
38 <%= linkify(h(changeset.tags['comment'])) %>
40 <%= t 'changeset.changeset.no_comment' %>