summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-01 11:35:43 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-01 11:35:43 +0000
commit31773f4dd7f89df7cea3ef4b3f547b479329ef9e (patch)
tree90ed75c6cc94d21503ca8fde5ae7a14a6c4562e5
parent6dd140047f11d8cdd02a2b5ad63cb1606970f9fb (diff)
parent68c87a2de3e3de1f9127c9d2196a45493a13141f (diff)
downloadgitlab-ce-31773f4dd7f89df7cea3ef4b3f547b479329ef9e.tar.gz
Merge branch 'milestone_percentage' into 'master'
Show milestone percentage in detail page, fixes #485 #### What does this MR do? This MR adds the percentage count also to the milestone detail page. ##### Why was this MR needed? Currently, this is only shown in the overview list. ##### What are the relevant issue numbers? #485 ###### Screenshots ![Screenshot 2014-08-17 21.14.27](https://gitlab.com/uploads/razer6/gitlab-ce/27e6f20bf2/Screenshot_2014-08-17_21.14.27.png) See merge request !170
-rw-r--r--app/views/projects/milestones/show.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml
index 42c3f45f6c9..1a495aa1c40 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -47,6 +47,8 @@
#{@milestone.closed_items_count} closed
&ndash;
#{@milestone.open_items_count} open
+ &nbsp;
+ %span.light #{@milestone.percent_complete}% complete
%span.pull-right= @milestone.expires_at
.progress.progress-info
.progress-bar{style: "width: #{@milestone.percent_complete}%;"}