diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-18 14:56:02 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-18 14:56:02 -0500 |
commit | e784958cb5396d745e43797988bacf9c9a27e9f4 (patch) | |
tree | dd978e43f8e69a3fe776cba560b6081d41327bfb /app/views/shared/issuable/_label_page_default.html.haml | |
parent | 5c7181b51492bd3ee13c5b498ac117ba08576ea8 (diff) | |
download | gitlab-ce-e784958cb5396d745e43797988bacf9c9a27e9f4.tar.gz |
Move shared html to a partial
Diffstat (limited to 'app/views/shared/issuable/_label_page_default.html.haml')
-rw-r--r-- | app/views/shared/issuable/_label_page_default.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/shared/issuable/_label_page_default.html.haml b/app/views/shared/issuable/_label_page_default.html.haml new file mode 100644 index 00000000000..80a8fb82e02 --- /dev/null +++ b/app/views/shared/issuable/_label_page_default.html.haml @@ -0,0 +1,19 @@ +- title = local_assigns.fetch(:title, 'Assign labels') +- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels') +.dropdown-page-one + = dropdown_title(title) + = dropdown_filter(filter_placeholder) + = dropdown_content + - if @project + = dropdown_footer do + %ul.dropdown-footer-list + - if can? current_user, :admin_label, @project + %li + %a.dropdown-toggle-page{href: "#"} + Create new + %li + = link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do + - if can? current_user, :admin_label, @project + Manage labels + - else + View labels
\ No newline at end of file |