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
</h2>
<div class="browse-section">
- <h4><%= @changeset.tags['comment'].to_s.presence || t('browse.no_comment') %></h4>
+ <h4><%= linkify(h(@changeset.tags['comment'].to_s.presence || t('browse.no_comment'))) %></h4>
<div class="details"><%= changeset_details(@changeset) %></div>
<%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
<h4>
<a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
- <% if changeset.tags['comment'].to_s != '' %>
- <%= linkify(h(changeset.tags['comment'])) %>
- <% else %>
- <%= t 'browse.no_comment' %>
- <% end %>
+ <%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
</a>
</h4>
<div class="details">