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

29 lines
1.2 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
.block.milestone
.title
2018-11-08 19:23:39 +05:30
= _("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-11-08 19:23:39 +05:30
= link_to _("Edit"), "#", class: "js-sidebar-dropdown-toggle edit-link float-right"
2017-08-17 22:00:37 +05:30
.value
%span.no-value{ "v-if" => "!issue.milestone" }
2018-11-08 19:23:39 +05:30
= _("None")
2017-08-17 22:00:37 +05:30
%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-05-09 12:01:36 +05:30
":data-issuable-id" => "issue.iid" }
2018-11-08 19:23:39 +05:30
= _("Milestone")
2017-08-17 22:00:37 +05:30
= icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable
2018-11-08 19:23:39 +05:30
= dropdown_title(_("Assign milestone"))
= dropdown_filter(_("Search milestones"))
2017-08-17 22:00:37 +05:30
= dropdown_content
= dropdown_loading