From: John Firebaugh Date: Mon, 22 Apr 2013 18:26:58 +0000 (-0700) Subject: Don't display empty changeset comments X-Git-Tag: live~5678 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/32959aed76917ff14f51acb185484dcc7bb2bfbd Don't display empty changeset comments See systemed/iD#1360. We will also change iD to omit empty comments. --- diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 574242f77..7c8165c67 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -29,7 +29,7 @@

<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>

- <% if common_details.changeset.tags['comment'] %> + <% if common_details.changeset.tags['comment'].present? %>

<%= t 'browse.common_details.changeset_comment' %>

<%= linkify(h(common_details.changeset.tags['comment'])) %>