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 list-group-item-action" do %>
14 <p class="fs-6 text-truncate text-wrap">
15 <a class="changeset_id link-body-emphasis stretched-link" href="<%= changeset_path(changeset) %>">
16 <span><%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %></span>
21 <%= changeset_details(changeset) %>
23 <a class="changeset_id link-body-emphasis" href="<%= changeset_path(changeset) %>">
27 <div class="col-auto text-secondary<%= " opacity-50" if changeset.comments.empty? %>">
28 <%= changeset.comments.length %>
29 <span class="icon note grey"></span>