_label.html.haml 415 Bytes
Newer Older
1
- frequency = @project.issues.tagged_with(label.name).count
2
%li
3
  %strong
4
5
6
7
8
9
    %span{class: "label #{label_css_class(label.name)}"}
      %i.icon-tag
    - if frequency.zero?
      %span.light= label.name
    - else
      = label.name
10
  .pull-right
11
12
13
14
15
    - unless frequency.zero?
      = link_to project_issues_path(label_name: label.name) do
        %strong
          = pluralize(frequency, 'issue')
          = "»"