diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-24 07:02:32 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-03-05 06:37:03 +0300 |
commit | 96058605c39ed2a7f6fdbdbbc3da05fdbe170681 (patch) | |
tree | 62cf2a3733346bb5a29ecd42ae08c8e86dedc0d2 /app/views/groups/milestones | |
parent | 3c157b6bf7fa97cba769ecacd11cdcdba43adf4a (diff) |
Show some stats about Milestone according to the new UI.
Diffstat (limited to 'app/views/groups/milestones')
-rw-r--r-- | app/views/groups/milestones/show.html.haml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/app/views/groups/milestones/show.html.haml b/app/views/groups/milestones/show.html.haml index 021425cad4f..bd61e50a5bd 100644 --- a/app/views/groups/milestones/show.html.haml +++ b/app/views/groups/milestones/show.html.haml @@ -47,11 +47,19 @@ = milestone.expires_at .context - %p.lead - Progress: - #{@milestone.closed_items_count} closed - – - #{@milestone.open_items_count} open + .milestone-summary + %h4 Progress + %strong= @milestone.issues.size + issues: + %span.milestone-stat + %strong= @milestone.opened_issues.size + open and + %strong= @milestone.closed_issues.size + closed + %span.milestone-stat + %strong== #{@milestone.percent_complete}% + complete + = milestone_progress_bar(@milestone) %ul.nav-links.no-top.no-bottom |