Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/labels/_label.html.haml')
-rw-r--r--app/views/projects/labels/_label.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/projects/labels/_label.html.haml b/app/views/projects/labels/_label.html.haml
new file mode 100644
index 00000000000..2b1aafc546b
--- /dev/null
+++ b/app/views/projects/labels/_label.html.haml
@@ -0,0 +1,15 @@
+- frequency = @project.issues.tagged_with(label.name).count
+%li
+ %strong
+ %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
+ %strong
+ = pluralize(frequency, 'issue')
+ = "ยป"