BigW Consortium Gitlab

_label_page_default.html.haml 1.32 KB
Newer Older
1
- title = local_assigns.fetch(:title, 'Assign labels')
Alfredo Sumaran committed
2
- show_create = local_assigns.fetch(:show_create, true)
3
- show_footer = local_assigns.fetch(:show_footer, true)
4
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels')
5
- show_boards_content = local_assigns.fetch(:show_boards_content, false)
6
.dropdown-page-one
7 8 9 10
  = dropdown_title(title)
  - if show_boards_content
    .issue-board-dropdown-content
      %p
11 12 13 14
        Each label that exists in your issue tracker can have its own dedicated
        list. Select a label below to add a list to your Board and it will
        automatically be populated with issues that have that label. To create
        a list for a label that doesn't exist yet, simply create the label below.
15
  = dropdown_filter(filter_placeholder)
16
  = dropdown_content
Alfredo Sumaran committed
17
  - if @project && show_footer
18 19
    = dropdown_footer do
      %ul.dropdown-footer-list
Alfredo Sumaran committed
20
        - if can?(current_user, :admin_label, @project)
21 22
          %li
            %a.dropdown-toggle-page{href: "#"}
23
              Create new label
24 25
        %li
          = link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
Alfredo Sumaran committed
26
            - if show_create && @project && can?(current_user, :admin_label, @project)
27 28
              Manage labels
            - else
29
              View labels
Alfredo Sumaran committed
30
  = dropdown_loading