debian-mirror-gitlab/app/views/projects/milestones/_milestone.html.haml

31 lines
1.7 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone) }
2015-09-25 12:07:36 +05:30
.row
.col-sm-6
%strong
= link_to_gfm truncate(milestone.title, length: 100), namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone)
2015-09-11 14:41:01 +05:30
2015-09-25 12:07:36 +05:30
.col-sm-6
.pull-right.light #{milestone.percent_complete}% complete
2015-04-26 12:48:37 +05:30
.row
.col-sm-6
2015-09-11 14:41:01 +05:30
= link_to namespace_project_issues_path(milestone.project.namespace, milestone.project, milestone_title: milestone.title) do
2015-04-26 12:48:37 +05:30
= pluralize milestone.issues.count, 'Issue'
2015-09-25 12:07:36 +05:30
·
2015-09-11 14:41:01 +05:30
= link_to namespace_project_merge_requests_path(milestone.project.namespace, milestone.project, milestone_title: milestone.title) do
2015-04-26 12:48:37 +05:30
= pluralize milestone.merge_requests.count, 'Merge Request'
.col-sm-6
= milestone_progress_bar(milestone)
2015-09-25 12:07:36 +05:30
.row
.col-sm-6
2015-12-23 02:04:40 +05:30
= render 'shared/milestone_expired', milestone: milestone
2015-09-25 12:07:36 +05:30
.col-sm-6
- if can?(current_user, :admin_milestone, milestone.project) and milestone.active?
= link_to edit_namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone), class: "btn btn-xs edit-milestone-link btn-grouped" do
%i.fa.fa-pencil-square-o
Edit
= link_to 'Close Milestone', namespace_project_milestone_path(@project.namespace, @project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-xs btn-close"
= link_to namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-xs btn-remove" do
%i.fa.fa-trash-o
2015-12-23 02:04:40 +05:30
Delete