From ded82ed4c9fde4e439a0da01138c6a3d9c1c991e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Thu, 14 May 2015 18:34:06 +0300 Subject: [PATCH] Small refactoring of state_filters_text_for helper --- app/helpers/application_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3d4588a3b5..ea9722b9be 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 -- 2.30.9