Show some stats about Milestone according to the new UI.

This commit is contained in:
Rubén Dávila 2016-02-23 23:02:32 -05:00
parent 3c157b6bf7
commit 96058605c3
2 changed files with 26 additions and 10 deletions

View file

@ -41,11 +41,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

View file

@ -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