It's confusing to make links in comments active in the changeset list as the rest of the comment is an active link to the changeset. We do want to make them active in the changeset view however, so add linkification to the comment there. Fixes https://trac.openstreetmap.org/ticket/5061
26 lines
693 B
Text
26 lines
693 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
|
|
%>
|
|
|
|
<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
|
|
<h4>
|
|
<a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
|
|
<%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
|
|
</a>
|
|
</h4>
|
|
<div class="details">
|
|
<%= changeset_details(changeset) %>
|
|
·
|
|
#<%= changeset.id %>
|
|
</div>
|
|
<% end %>
|