append empty space only if count exists

This commit is contained in:
Dmitriy Zaporozhets 2015-05-14 18:32:07 +03:00
parent 3d4d89f060
commit 40f381e652
1 changed files with 1 additions and 1 deletions

View File

@ -333,9 +333,9 @@ module ApplicationHelper
html = ""
html += content_tag :span, entity_title
html += " "
if count.present?
html += " "
html += content_tag :span, number_with_delimiter(count), class: 'badge'
end