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:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-20 00:40:18 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-30 00:38:36 +0300
commitbb8490b018bda7327a82e8ed38d3f1d60c9b4c39 (patch)
treef4375a7ebf2ea27121caf49bbe0556acc582c21f /app/views/shared/_label_row.html.haml
parent1f309b69df3f71d988d4d31b08a1b683099a46e5 (diff)
Start redesign of group labels page
Diffstat (limited to 'app/views/shared/_label_row.html.haml')
-rw-r--r--app/views/shared/_label_row.html.haml12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/shared/_label_row.html.haml b/app/views/shared/_label_row.html.haml
index 7f58298c60f..34da13ca52b 100644
--- a/app/views/shared/_label_row.html.haml
+++ b/app/views/shared/_label_row.html.haml
@@ -1,3 +1,7 @@
+- subject = local_assigns[:subject]
+- show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project)
+- show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project)
+
%span.label-row
- if can?(current_user, :admin_label, @project)
.draggable-handler
@@ -16,3 +20,11 @@
- if label.description
%span.label-description
= markdown_field(label, :description)
+ .hidden-xs.hidden-sm
+ - if show_label_issues_link
+ = link_to_label(label, subject: subject) do
+ Issues
+ - if show_label_merge_requests_link
+ &middot;
+ = link_to_label(label, subject: subject, type: :merge_request) do
+ Merge requests