From 32959aed76917ff14f51acb185484dcc7bb2bfbd Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 22 Apr 2013 11:26:58 -0700 Subject: [PATCH] Don't display empty changeset comments See systemed/iD#1360. We will also change iD to omit empty comments. --- app/views/browse/_common_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) %>

-- 2.43.2