Don't linkify comments in the changeset list

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
This commit is contained in:
Tom Hughes 2013-12-08 13:11:48 +00:00
parent 5d6a47929c
commit 5c53bb78ab
2 changed files with 2 additions and 6 deletions

View file

@ -6,7 +6,7 @@
</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') %>