Commit 2c32edb3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix 500 for labels page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b2a6f4e1
- frequency = @project.issues.tagged_with(label.name).count
%li
%span{class: "label #{label_css_class(label.name)}"}
%i.icon-tag
- if frequency.zero?
%span.light= label.name
- else
= label.name
.pull-right
- unless frequency.zero?
= link_to project_issues_path(label_name: label.name) do
= pluralize(frequency, 'issue')
= "»"
= render_colored_label(label)
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