Alternative to #580 This reworks changeset descriptions to use italics instead of header elements, in order to make them more like quotes. Care has been taken to make sure that there is still a header element as the first element of the common details partial, in order to make the history pages look right (where the partial appears multiple times).
28 lines
891 B
Text
28 lines
891 B
Text
<% changeset_data = { :id => changeset.id }
|
|
|
|
if changeset.has_valid_bbox?
|
|
bbox = changeset.bbox.to_unscaled
|
|
changeset_data[:bbox] = {
|
|
:minlon => bbox.min_lon,
|
|
:minlat => bbox.min_lat,
|
|
:maxlon => bbox.max_lon,
|
|
:maxlat => bbox.max_lat
|
|
}
|
|
end %>
|
|
|
|
<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %>
|
|
<p class="font-italic">
|
|
<a class="changeset_id text-dark" href="<%= changeset_path(changeset) %>">
|
|
<%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
|
|
</a>
|
|
</p>
|
|
<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 %>
|
|
</div>
|
|
<% end %>
|