diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-14 18:34:06 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-14 18:34:06 +0300 |
commit | ded82ed4c9fde4e439a0da01138c6a3d9c1c991e (patch) | |
tree | 82228fb7e9a13a80c18d78fba58f815f3829129c /app | |
parent | 40f381e6527f6eac3f4ccbbd7cfde690f2b40be8 (diff) | |
download | gitlab-ce-ded82ed4c9fde4e439a0da01138c6a3d9c1c991e.tar.gz |
Small refactoring of state_filters_text_for helperuse-count-badges
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |