summaryrefslogtreecommitdiff
path: root/app/Template/board
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-01 14:23:59 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-01 14:23:59 -0500
commit30cd4c54587d70e4d10230ab425b2ffbe4e62ae2 (patch)
tree14994a502674fae15d45d4ba3fcbde9ecc4ea096 /app/Template/board
parent40ca850707b2f7f51d2d9028bcfd218cd966b32f (diff)
parent78e7a5e85d24a3e98fa996e0302a5eaa4c0a3fa1 (diff)
Merge pull-request #568
Diffstat (limited to 'app/Template/board')
-rw-r--r--app/Template/board/task.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/board/task.php b/app/Template/board/task.php
index 66ddee60..a09d9cce 100644
--- a/app/Template/board/task.php
+++ b/app/Template/board/task.php
@@ -98,7 +98,7 @@
<div class="task-board-icons">
<?php if (! empty($task['nb_subtasks'])): ?>
- <span title="<?= t('Sub-Tasks') ?>" class="task-board-tooltip" data-href="<?= $this->u('board', 'subtasks', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><?= $task['nb_completed_subtasks'].'/'.$task['nb_subtasks'] ?> <i class="fa fa-bars"></i></span>
+ <span title="<?= t('Sub-Tasks') ?>" class="task-board-tooltip" data-href="<?= $this->u('board', 'subtasks', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><?= round($task['nb_completed_subtasks']/$task['nb_subtasks']*100,0).'% Completed ' ?><?= $task['nb_completed_subtasks'].'/'.$task['nb_subtasks'] ?> <i class="fa fa-bars"></i></span>
<?php endif ?>
<?php if (! empty($task['nb_files'])): ?>