debian-mirror-gitlab/app/views/shared/boards/components/sidebar/_milestone.html.haml

30 lines
1.3 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
.block.milestone
.title
Milestone
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2017-08-17 22:00:37 +05:30
= icon("spinner spin", class: "block-loading")
2018-03-17 18:26:18 +05:30
= link_to "Edit", "#", class: "js-sidebar-dropdown-toggle edit-link pull-right"
2017-08-17 22:00:37 +05:30
.value
%span.no-value{ "v-if" => "!issue.milestone" }
None
%span.bold.has-tooltip{ "v-if" => "issue.milestone" }
{{ issue.milestone.title }}
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2017-08-17 22:00:37 +05:30
.selectbox
%input{ type: "hidden",
":value" => "issue.milestone.id",
name: "issue[milestone_id]",
"v-if" => "issue.milestone" }
.dropdown
2018-03-17 18:26:18 +05:30
%button.dropdown-menu-toggle.js-milestone-select.js-issue-board-sidebar{ type: "button", data: { toggle: "dropdown", show_no: "true", field_name: "issue[milestone_id]", milestones: milestones_filter_path(format: :json), ability_name: "issue", use_id: "true", default_no: "true" },
2017-09-10 17:25:29 +05:30
":data-selected" => "milestoneTitle",
2018-03-17 18:26:18 +05:30
":data-issuable-id" => "issue.iid",
":data-issue-update" => "'#{build_issue_link_base}/' + issue.iid + '.json'" }
2017-08-17 22:00:37 +05:30
Milestone
= icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable
= dropdown_title("Assign milestone")
= dropdown_filter("Search milestones")
= dropdown_content
= dropdown_loading