gitlabhq/app/views/milestones/show.html.haml

95 lines
2.9 KiB
Plaintext
Raw Normal View History

2012-12-14 06:34:05 +01:00
.row
.span6
%h3.page_title
Milestone ##{@milestone.id}
%small
= @milestone.expires_at
.back_link
= link_to project_milestones_path(@project) do
← To milestones list
.span6
2013-01-30 15:40:43 +01:00
.pull-right
2013-02-18 10:10:09 +01:00
- unless @milestone.closed?
2013-01-29 21:29:21 +01:00
= link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn btn-small grouped", title: "New Issue" do
2012-12-14 06:34:05 +01:00
%i.icon-plus
New Issue
= link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link small grouped"
- if can?(current_user, :admin_milestone, @project)
2013-01-29 21:29:21 +01:00
= link_to edit_project_milestone_path(@project, @milestone), class: "btn btn-small grouped" do
2012-12-14 06:34:05 +01:00
%i.icon-edit
Edit
- if @milestone.can_be_closed?
%hr
%p
%span All issues for this milestone are closed. You may close milestone now.
2013-02-18 13:49:56 +01:00
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-small btn-remove"
2012-04-08 23:28:58 +02:00
2013-01-04 22:35:31 +01:00
.ui-box.ui-box-show
.ui-box-head
2012-12-14 06:34:05 +01:00
%h4.box-title
2013-02-18 10:10:09 +01:00
- if @milestone.closed?
2012-12-14 06:34:05 +01:00
.error.status_info Closed
- elsif @milestone.expired?
.error.status_info Expired
2012-09-20 02:21:12 +02:00
= gfm escape_once(@milestone.title)
2012-04-08 23:28:58 +02:00
2013-01-04 22:35:31 +01:00
.ui-box-body
2013-01-07 13:08:03 +01:00
%p
2012-05-24 08:23:25 +02:00
Progress:
2013-01-07 13:08:03 +01:00
#{@milestone.closed_items_count} closed
–
#{@milestone.open_items_count} open
2013-01-30 15:40:43 +01:00
%span.pull-right= @milestone.expires_at
2012-10-29 22:45:11 +01:00
.progress.progress-info
.bar{style: "width: #{@milestone.percent_complete}%;"}
2012-04-08 23:28:58 +02:00
- if @milestone.description.present?
2013-01-07 13:08:03 +01:00
.ui-box-bottom
= preserve do
= markdown @milestone.description
2012-04-08 23:28:58 +02:00
2012-12-14 06:34:05 +01:00
.row
.span6
2013-01-07 13:08:03 +01:00
.ui-box.milestone-issue-filter
.title
%ul.nav.nav-pills
%li.active= link_to('Open Issues', '#')
%li=link_to('All Issues', '#')
%ul.well-list
- @issues.each do |issue|
2013-02-18 10:10:09 +01:00
%li{data: {closed: issue.closed?}}
= link_to [@project, issue] do
2012-05-24 08:23:25 +02:00
%span.badge.badge-info ##{issue.id}
2012-07-22 14:33:03 +02:00
–
= link_to_gfm truncate(issue.title, length: 60), [@project, issue]
.span6
2013-01-07 13:08:03 +01:00
.ui-box.milestone-merge-requests-filter
.title
%ul.nav.nav-pills
%li.active= link_to('Open Merge Requests', '#')
%li=link_to('All Merge Requests', '#')
%ul.well-list
- @merge_requests.each do |merge_request|
%li{data: {closed: merge_request.closed? || merge_request.merged?}}
= link_to [@project, merge_request] do
%span.badge.badge-info ##{merge_request.id}
–
= link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request]
2012-10-29 22:45:11 +01:00
%hr
%h6 Participants:
%div
- @users.each do |user|
= link_to user, class: 'float-link' do
2012-10-29 22:45:11 +01:00
= user.avatar_image
= user.name
.clearfix