1 <% changeset_data = { :id => changeset.id }
3 if changeset.bbox_valid?
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 %>
14 <p class="font-italic">
15 <a class="changeset_id text-dark" href="<%= changeset_path(changeset) %>">
16 <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
21 <%= changeset_details(changeset) %>
25 <div class="col-auto comments comments-<%= changeset.comments.length %>">
26 <%= changeset.comments.length %>
27 <span class="icon note grey"></span>