From ded82ed4c9fde4e439a0da01138c6a3d9c1c991e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 14 May 2015 18:34:06 +0300 Subject: Small refactoring of state_filters_text_for helper --- app/helpers/application_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3d4588a3b5d..ea9722b9bef 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -331,11 +331,10 @@ module ApplicationHelper project.merge_requests.send(entity).count end - html = "" - html += content_tag :span, entity_title + html = content_tag :span, entity_title if count.present? - html += " " + html += " " html += content_tag :span, number_with_delimiter(count), class: 'badge' end -- cgit v1.2.3