1 <% changeset_data = { :id => changeset.id }
3 if changeset.has_valid_bbox?
4 bbox = changeset.bbox.to_unscaled
5 changeset_data[:bbox] = {
6 :minlon => bbox.min_lon,
7 :minlat => bbox.min_lat,
8 :maxlon => bbox.max_lon,
9 :maxlat => bbox.max_lat
13 <%= content_tag "li", :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data } do %>
15 <a class="changeset_id" href="<%= changeset_path(changeset) %>">
16 <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
19 <div class="comments comments-<%= changeset.comments.length %>">
20 <%= changeset.comments.length %>
21 <span class="icon note grey"></span>
24 <%= changeset_details(changeset) %>