From 2c32edb3aeb3abd4eae12a51b071629da5ab30ff Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 29 Jul 2014 22:24:03 +0300 Subject: [PATCH] Fix 500 for labels page Signed-off-by: Dmitriy Zaporozhets --- app/views/projects/labels/_label.html.haml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/views/projects/labels/_label.html.haml b/app/views/projects/labels/_label.html.haml index 6e1ca0d8f2..cf736788c9 100644 --- a/app/views/projects/labels/_label.html.haml +++ b/app/views/projects/labels/_label.html.haml @@ -1,13 +1,2 @@ -- 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)