Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_labels.html.haml « sidebar « components « boards « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1088dc52222cad83df3f2afd10c876749bb68c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.block.labels
  .title
    = _("Labels")
    - if can_admin_issue?
      = icon("spinner spin", class: "block-loading")
      = link_to _("Edit"), "#", class: "js-sidebar-dropdown-toggle edit-link float-right"
  .value.issuable-show-labels.dont-hide
    %span.no-value{ "v-if" => "issue.labels && issue.labels.length === 0" }
      = _("None")
    %span{ "v-for" => "label in issue.labels" }
      %gl-label{ ":key" => "label.id",
        ":background-color" => "label.color",
        ":title" => "label.title",
        ":description" => "label.description",
        ":scoped" => "showScopedLabels(label)",
        ":scoped-labels-documentation-link" => "helpLink" }

  - if can_admin_issue?
    .selectbox
      %input{ type: "hidden",
        name: "issue[label_names][]",
        "v-for" => "label in issue.labels",
        ":value" => "label.id" }
      .dropdown
        %button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button",
          ":data-selected" => "selectedLabels",
          ":data-labels" => "issue.assignableLabelsEndpoint",
          data: label_dropdown_data(@project, namespace_path: @namespace_path, field_name: "issue[label_names][]") }
          %span.dropdown-toggle-text
            {{ labelDropdownTitle }}
          = icon('chevron-down')
        .dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable.dropdown-extended-height
          = render partial: "shared/issuable/label_page_default"
          - if can?(current_user, :admin_label, current_board_parent)
            = render partial: "shared/issuable/label_page_create", locals: { show_add_list: true }