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 <%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %>
15 <a class="changeset_id text-dark" 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) %>