2012-04-08 17:28:58 -04:00
|
|
|
%h3
|
|
|
|
Milestone ##{@milestone.id}
|
|
|
|
%small
|
|
|
|
= @milestone.expires_at
|
|
|
|
|
|
|
|
%span.right
|
2012-07-05 02:35:23 -04:00
|
|
|
= link_to 'Browse Issues', project_issues_path(@milestone.project, :milestone_id => @milestone.id), :class => "btn edit-milestone-link small grouped"
|
2012-04-08 17:28:58 -04:00
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
2012-07-05 02:35:23 -04:00
|
|
|
= link_to edit_project_milestone_path(@project, @milestone), :class => "btn small grouped" do
|
2012-05-24 02:23:25 -04:00
|
|
|
%i.icon-edit
|
2012-04-08 17:28:58 -04:00
|
|
|
Edit
|
|
|
|
|
|
|
|
.back_link
|
2012-06-03 18:37:27 -04:00
|
|
|
= link_to project_milestones_path(@project) do
|
2012-04-08 17:28:58 -04:00
|
|
|
← To milestones list
|
|
|
|
|
|
|
|
.main_box
|
|
|
|
.top_box_content
|
|
|
|
%h5
|
|
|
|
- if @milestone.closed
|
|
|
|
.alert-message.error.status_info Closed
|
2012-06-03 18:37:27 -04:00
|
|
|
- else
|
2012-04-08 17:28:58 -04:00
|
|
|
.alert-message.success.status_info Open
|
|
|
|
= @milestone.title
|
2012-05-24 02:23:25 -04:00
|
|
|
%small.right= @milestone.expires_at
|
2012-04-08 17:28:58 -04:00
|
|
|
|
|
|
|
.middle_box_content
|
2012-05-24 02:23:25 -04:00
|
|
|
%h5
|
|
|
|
Progress:
|
|
|
|
%small
|
|
|
|
#{@milestone.issues.opened.count} open
|
|
|
|
–
|
|
|
|
#{@milestone.issues.closed.count} closed
|
2012-05-31 17:10:52 -04:00
|
|
|
.progress.progress-success
|
|
|
|
.bar{:style => "width: #{@milestone.percent_complete}%;"}
|
|
|
|
|
2012-04-08 17:28:58 -04:00
|
|
|
|
|
|
|
- if @milestone.description.present?
|
|
|
|
.bottom_box_content
|
2012-04-11 15:36:52 -04:00
|
|
|
= preserve do
|
|
|
|
= markdown @milestone.description
|
2012-04-08 17:28:58 -04:00
|
|
|
|
2012-04-24 14:49:34 -04:00
|
|
|
.row
|
|
|
|
.span6
|
2012-05-24 02:23:25 -04:00
|
|
|
%table.admin-table
|
|
|
|
%thead
|
|
|
|
%th Open Issues
|
|
|
|
- @issues.each do |issue|
|
|
|
|
%tr
|
|
|
|
%td
|
2012-06-03 18:37:27 -04:00
|
|
|
= link_to [@project, issue] do
|
2012-05-24 02:23:25 -04:00
|
|
|
%span.badge.badge-info ##{issue.id}
|
|
|
|
–
|
|
|
|
= truncate issue.title, :length => 60
|
2012-04-24 14:49:34 -04:00
|
|
|
%br
|
|
|
|
= paginate @issues, :theme => "gitlab"
|
|
|
|
|
|
|
|
.span6
|
2012-05-24 02:23:25 -04:00
|
|
|
%table.admin-table
|
|
|
|
%thead
|
|
|
|
%th Participants
|
|
|
|
- @users.each do |user|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= image_tag gravatar_icon(user.email, 24), :width => "24"
|
|
|
|
|
|
|
|
= user.name
|