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 %>
17 <a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
18 <%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
22 <%= changeset_details(changeset) %>