1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%h3
Milestone ##{@milestone.id}
%small
= @milestone.expires_at
%span.right
= 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)
= link_to edit_project_milestone_path(@project, @milestone), :class => "btn small grouped" do
%i.icon-edit
Edit
.back_link
= link_to project_milestones_path(@project) do
← To milestones list
.main_box
.top_box_content
%h5
- if @milestone.closed
.alert-message.error.status_info Closed
- else
.alert-message.success.status_info Open
= @milestone.title
%small.right= @milestone.expires_at
.middle_box_content
%h5
Progress:
%small
#{@milestone.issues.opened.count} open
–
#{@milestone.issues.closed.count} closed
.progress.progress-success
.bar{:style => "width: #{@milestone.percent_complete}%;"}
- if @milestone.description.present?
.bottom_box_content
= preserve do
= markdown @milestone.description
.row
.span6
%table.admin-table
%thead
%th Open Issues
- @issues.each do |issue|
%tr
%td
= link_to [@project, issue] do
%span.badge.badge-info ##{issue.id}
–
= link_to truncate(issue.title, :length => 60), [@project, issue]
%br
= paginate @issues, :theme => "gitlab"
.span6
%table.admin-table
%thead
%th Participants
- @users.each do |user|
%tr
%td
= image_tag gravatar_icon(user.email, 24), :width => "24"
= user.name