diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 19:26:41 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 19:26:41 +0300 |
commit | 03441769dfc09776eb8511275a3f492ded1a7c42 (patch) | |
tree | bfc6ed0dae6c8e73a43eae071daf7b7753acb9a0 /app/views/labels/_label.html.haml | |
parent | be68cc461755752697642c58154781ae4ec9ab31 (diff) | |
download | gitlab-ce-03441769dfc09776eb8511275a3f492ded1a7c42.tar.gz |
Include default labels in issues autocomplete etc. Show colored labels on issues show page
Diffstat (limited to 'app/views/labels/_label.html.haml')
-rw-r--r-- | app/views/labels/_label.html.haml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/views/labels/_label.html.haml b/app/views/labels/_label.html.haml index 027b041d58e..2b1aafc546b 100644 --- a/app/views/labels/_label.html.haml +++ b/app/views/labels/_label.html.haml @@ -1,9 +1,15 @@ +- frequency = @project.issues.tagged_with(label.name).count %li %strong - %i.icon-tag - = label.name + %span{class: "label #{label_css_class(label.name)}"} + %i.icon-tag + - if frequency.zero? + %span.light= label.name + - else + = label.name .pull-right - = link_to project_issues_path(label_name: label.name) do - %strong - = pluralize(label.count, 'issue') - = "»" + - unless frequency.zero? + = link_to project_issues_path(label_name: label.name) do + %strong + = pluralize(frequency, 'issue') + = "»" |