@@ -31,7 +31,7 | |||||
31 |
|
31 | |||
32 | total = issues.size |
|
32 | total = issues.size | |
33 | complete = issues.inject(0) {|c,i| i.status.is_closed? ? c + 1 : c } |
|
33 | complete = issues.inject(0) {|c,i| i.status.is_closed? ? c + 1 : c } | |
34 | percentComplete = total == 0 ? 100 : (100 / total * complete).floor |
|
34 | percentComplete = total == 0 ? 100 : (100.0 / total * complete).floor | |
35 | percentIncomplete = 100 - percentComplete |
|
35 | percentIncomplete = 100 - percentComplete | |
36 | %> |
|
36 | %> | |
37 | <table class="progress"> |
|
37 | <table class="progress"> |
General Comments 0
You need to be logged in to leave comments.
Login now