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="fst-italic">
15 <a class="changeset_id text-dark 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 text-dark" href="<%= changeset_path(changeset) %>">
27 <div class="col-auto comments<%= " opacity-50" if changeset.comments.empty? %>">
28 <%= changeset.comments.length %>
29 <span class="icon note grey"></span>