summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFábio Hideki <hideki.fabio@gmail.com>2015-06-04 21:55:43 -0300
committerFábio Hideki <hideki.fabio@gmail.com>2015-06-04 21:55:43 -0300
commitefc7c135637f40c8ca6cb739b7f199ef35d87e94 (patch)
tree2e1177fda04801d15f102e1cb9c852bd792b49f0
parent599b6624dde8cb1c1f6416ee0af530402089da4d (diff)
adding time estimated in de task footer and swimlanes' name in the task details
-rw-r--r--app/Model/TaskFinder.php1
-rw-r--r--app/Template/board/task_footer.php4
-rw-r--r--app/Template/task/details.php5
3 files changed, 10 insertions, 0 deletions
diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php
index 6f53249a..45b910ba 100644
--- a/app/Model/TaskFinder.php
+++ b/app/Model/TaskFinder.php
@@ -111,6 +111,7 @@ class TaskFinder extends Base
'tasks.recurrence_basedate',
'tasks.recurrence_parent',
'tasks.recurrence_child',
+ 'tasks.time_estimated',
'users.username AS assignee_username',
'users.name AS assignee_name'
)
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 5945d5af..e191dca7 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -58,4 +58,8 @@
<?php if ($task['score']): ?>
<span class="task-score"><?= $this->e($task['score']) ?></span>
<?php endif ?>
+
+ <?php if (! empty($task['time_estimated'])): ?>
+ <strong><?= $this->e($task['time_estimated']).'h' ?> <?= t('estimated') ?></strong>
+ <?php endif ?>
</div>
diff --git a/app/Template/task/details.php b/app/Template/task/details.php
index f688585a..7a99371f 100644
--- a/app/Template/task/details.php
+++ b/app/Template/task/details.php
@@ -9,6 +9,11 @@
<strong><?= t('Reference: %s', $task['reference']) ?></strong>
</li>
<?php endif ?>
+ <?php if ($task['swimlane_id']): ?>
+ <li>
+ <?= t('Swimlane: %s ', $this->swimlane->getNameById($task['swimlane_id'])) ?>
+ </li>
+ <?php endif ?>
<li>
<?= dt('Created on %B %e, %Y at %k:%M %p', $task['date_creation']) ?>
</li>