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
2020-10-24 23:57:45 +05:30
.title.gl-h-5.gl-display-flex.gl-align-items-center
2018-11-08 19:23:39 +05:30
= _("Milestone")
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2020-10-24 23:57:45 +05:30
= loading_icon(css_class: 'gl-ml-2 block-loading')
= link_to _("Edit"), "#", class: "js-sidebar-dropdown-toggle edit-link gl-ml-auto"
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
2020-11-24 15:15:51 +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]", ability_name: "issue", use_id: "true", default_no: "true" },
2017-09-10 17:25:29 +05:30
":data-selected" => "milestoneTitle",
2020-11-24 15:15:51 +05:30
":data-issuable-id" => "issue.iid",
":data-project-id" => "issue.project_id" }
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