debian-mirror-gitlab/app/views/shared/milestones/_delete_button.html.haml
2021-06-08 01:23:25 +05:30

12 lines
554 B
Text

- milestone_url = @milestone.project_milestone? ? project_milestone_path(@project, @milestone) : group_milestone_path(@group, @milestone)
%button.js-delete-milestone-button.btn.gl-button.btn-grouped.btn-danger{ data: { milestone_id: @milestone.id,
milestone_title: markdown_field(@milestone, :title),
milestone_url: milestone_url,
milestone_issue_count: @milestone.issues.count,
milestone_merge_request_count: @milestone.merge_requests.count },
disabled: true }
= _('Delete')
.gl-spinner.js-loading-icon.hidden
#js-delete-milestone-modal