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') %>
21 <div class="comments comments-<%= changeset.comments.length %>">
22 <%= changeset.comments.length %>
23 <span class="icon note grey"></span>
26 <%= changeset_details(changeset) %>