-<%
- changeset_data = {:id => changeset.id}
+<% changeset_data = { :id => changeset.id }
- if changeset.has_valid_bbox?
+ if changeset.bbox_valid?
bbox = changeset.bbox.to_unscaled
changeset_data[:bbox] = {
:minlon => bbox.min_lon,
:maxlon => bbox.max_lon,
:maxlat => bbox.max_lat
}
- end
-%>
+ end %>
-<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
- <h4>
- <a class="changeset_id" href="<%= changeset_path(changeset) %>">
- <%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
+<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %>
+ <p class="fst-italic">
+ <a class="changeset_id text-dark stretched-link" href="<%= changeset_path(changeset) %>">
+ <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
</a>
- </h4>
- <div class="comments comments-<%= changeset.comments.length %>">
- <%= changeset.comments.length %>
- <span class="icon note grey"></span>
- </div>
- <div class="details">
- <%= changeset_details(changeset) %>
- ·
- #<%= changeset.id %>
+ </p>
+ <div class="row">
+ <div class="col">
+ <%= changeset_details(changeset) %>
+ ·
+ #<%= changeset.id %>
+ </div>
+ <div class="col-auto comments comments-<%= changeset.comments.length %>">
+ <%= changeset.comments.length %>
+ <span class="icon note grey"></span>
+ </div>
</div>
<% end %>