2016-01-14 18:37:52 +05:30
|
|
|
- page_title @milestone.title, "Milestones"
|
|
|
|
- page_description @milestone.description
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.detail-page-header
|
|
|
|
.status-box{ class: status_box_class(@milestone) }
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @milestone.closed?
|
|
|
|
Closed
|
|
|
|
- elsif @milestone.expired?
|
2016-06-16 23:09:34 +05:30
|
|
|
Past due
|
2015-04-26 12:48:37 +05:30
|
|
|
- else
|
|
|
|
Open
|
2015-12-23 02:04:40 +05:30
|
|
|
%span.identifier
|
|
|
|
Milestone ##{@milestone.iid}
|
|
|
|
- if @milestone.expires_at
|
|
|
|
%span.creator
|
|
|
|
·
|
|
|
|
= @milestone.expires_at
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
|
|
|
- if @milestone.active?
|
2016-01-19 16:12:03 +05:30
|
|
|
= link_to 'Close Milestone', namespace_project_milestone_path(@project.namespace, @project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-close btn-nr btn-grouped"
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2016-01-19 16:12:03 +05:30
|
|
|
= link_to 'Reopen Milestone', namespace_project_milestone_path(@project.namespace, @project, @milestone, milestone: {state_event: :activate }), method: :put, class: "btn btn-reopen btn-nr btn-grouped"
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
= link_to edit_namespace_project_milestone_path(@project.namespace, @project, @milestone), class: "btn btn-grouped btn-nr" do
|
2015-12-23 02:04:40 +05:30
|
|
|
Edit
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
= link_to namespace_project_milestone_path(@project.namespace, @project, @milestone), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-grouped btn-danger" do
|
|
|
|
Delete
|
|
|
|
|
|
|
|
.detail-page-description.milestone-detail
|
2015-12-23 02:04:40 +05:30
|
|
|
%h2.title
|
|
|
|
= markdown escape_once(@milestone.title), pipeline: :single_line
|
|
|
|
%div
|
|
|
|
- if @milestone.description.present?
|
|
|
|
.description
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown @milestone.description
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @milestone.total_items_count(current_user).zero?
|
2015-12-23 02:04:40 +05:30
|
|
|
.alert.alert-success.prepend-top-default
|
2016-06-02 11:05:42 +05:30
|
|
|
%span Assign some issues to this milestone.
|
|
|
|
- elsif @milestone.complete?(current_user) && @milestone.active?
|
|
|
|
.alert.alert-success.prepend-top-default
|
|
|
|
%span All issues for this milestone are closed. You may close this milestone now.
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
= render 'shared/milestones/summary', milestone: @milestone, project: @project
|
|
|
|
= render 'shared/milestones/tabs', milestone: @milestone
|