BigW Consortium Gitlab

_label_page_default.html.haml 1.11 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')
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
        Create lists from the labels you use in your project. Issues with that
        label will automatically be added to the list.
13
  = dropdown_filter(filter_placeholder)
14
  = dropdown_content
Alfredo Sumaran committed
15
  - if @project && show_footer
16 17
    = dropdown_footer do
      %ul.dropdown-footer-list
Alfredo Sumaran committed
18
        - if can?(current_user, :admin_label, @project)
19
          %li
20
            %a.dropdown-toggle-page{ href: "#" }
21
              Create new label
22
        %li
23
          = link_to project_labels_path(@project), :"data-is-link" => true do
Alfredo Sumaran committed
24
            - if show_create && @project && can?(current_user, :admin_label, @project)
25 26
              Manage labels
            - else
27
              View labels
Alfredo Sumaran committed
28
  = dropdown_loading