summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-05-05 17:08:23 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-03 17:14:23 -0500
commit90c2ab02b5a5f6a63e419c3616dc6f5b00c0a68d (patch)
treea1d5cb8478f2e58d33950a0c48424d992179da5d
parentd09114e4eda026fd695a758a52cf990b6afc23f4 (diff)
downloadgitlab-ce-90c2ab02b5a5f6a63e419c3616dc6f5b00c0a68d.tar.gz
Add show_create param to toggle label creation option
-rw-r--r--app/views/shared/issuable/_label_dropdown.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_label_dropdown.html.haml b/app/views/shared/issuable/_label_dropdown.html.haml
index bf6fac34300..b095fd19629 100644
--- a/app/views/shared/issuable/_label_dropdown.html.haml
+++ b/app/views/shared/issuable/_label_dropdown.html.haml
@@ -1,3 +1,4 @@
+- show_create = local_assigns.fetch(:show_create, true)
- extra_options = local_assigns.fetch(:extra_options, true)
- filter_submit = local_assigns.fetch(:filter_submit, true)
- show_footer = local_assigns.fetch(:show_footer, true)
@@ -18,8 +19,7 @@
= h(multi_label_name(params[:label_name], "Label"))
= icon('chevron-down')
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
- = render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label" }
- - if can? current_user, :admin_label, @project and @project
= render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label", show_footer: show_footer }
+ - if can? current_user, :admin_label, @project and @project and show_create
= render partial: "shared/issuable/label_page_create"
= dropdown_loading