]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/_contact.html.erb
Change the test for whether the CTs have been seen to use the
[rails.git] / app / views / user / _contact.html.erb
index bcab838ba76405bc60609f6c4b43fdffaa71731a..d720353eed82308a9fd6ea604bc09650b5cc39bd 100644 (file)
@@ -19,7 +19,7 @@
     <% changeset = contact.changesets.first %>
     <% if changeset %>
       <%= t('user.view.latest edit', :ago => t('user.view.ago', :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
-      <% comment = changeset.tags['comment'] ? changeset.tags['comment'] : t('changeset.changeset.no_comment') %>
+      <% comment = changeset.tags['comment'].to_s != '' ? changeset.tags['comment'] : t('changeset.changeset.no_comment') %>
       "<%= link_to(comment,
                           {:controller => 'browse', :action => 'changeset', :id => changeset.id},
                           {:title => t('changeset.changeset.view_changeset_details')})