BigW Consortium Gitlab

Commit ded82ed4 by Dmitriy Zaporozhets

Small refactoring of state_filters_text_for helper

parent 40f381e6
...@@ -331,11 +331,10 @@ module ApplicationHelper ...@@ -331,11 +331,10 @@ module ApplicationHelper
project.merge_requests.send(entity).count project.merge_requests.send(entity).count
end end
html = "" html = content_tag :span, entity_title
html += content_tag :span, entity_title
if count.present? if count.present?
html += " " html += " "
html += content_tag :span, number_with_delimiter(count), class: 'badge' html += content_tag :span, number_with_delimiter(count), class: 'badge'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment