BigW Consortium Gitlab

_milestone.html.haml 1.33 KB
Newer Older
1
.block.milestone
2
  .title
3 4
    Milestone
    - if can?(current_user, :admin_issue, @project)
5
      = icon("spinner spin", class: "block-loading")
6 7 8 9 10 11
      = link_to "Edit", "#", class: "edit-link pull-right"
  .value
    %span.no-value{ "v-if" => "!issue.milestone" }
      None
    %span.bold.has-tooltip{ "v-if" => "issue.milestone" }
      {{ issue.milestone.title }}
12 13 14 15 16 17 18
  - if can?(current_user, :admin_issue, @project)
    .selectbox
      %input{ type: "hidden",
        ":value" => "issue.milestone.id",
        name: "issue[milestone_id]",
        "v-if" => "issue.milestone" }
      .dropdown
Phil Hughes committed
19
        %button.dropdown-menu-toggle.js-milestone-select.js-issue-board-sidebar{ type: "button", data: { toggle: "dropdown", show_no: "true", field_name: "issue[milestone_id]", project_id: @project.id, milestones: namespace_project_milestones_path(@project.namespace, @project, :json), ability_name: "issue", use_id: "true" },
20
          ":data-issuable-id" => "issue.id",
21
          ":data-issue-update" => "'#{namespace_project_issues_path(@project.namespace, @project)}/' + issue.id + '.json'" }
22 23 24 25 26 27 28
          Milestone
          = icon("chevron-down")
        .dropdown-menu.dropdown-select.dropdown-menu-selectable
          = dropdown_title("Assignee milestone")
          = dropdown_filter("Search milestones")
          = dropdown_content
          = dropdown_loading