summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/dashboard/project_tasks.php45
-rw-r--r--app/Template/task_list/task_details.php2
-rw-r--r--app/Template/task_list/task_project_name.php5
3 files changed, 52 insertions, 0 deletions
diff --git a/app/Template/dashboard/project_tasks.php b/app/Template/dashboard/project_tasks.php
new file mode 100644
index 00000000..1577f814
--- /dev/null
+++ b/app/Template/dashboard/project_tasks.php
@@ -0,0 +1,45 @@
+<div class="page-header">
+ <h2><?= $this->url->link(t('My tasks'), 'DashboardController', 'tasks', array('user_id' => $user['id'])) ?> (<?= $paginator->getTotal() ?>)</h2>
+</div>
+<?php if ($paginator->isEmpty()): ?>
+ <p class="alert"><?= t('There is nothing assigned to you.') ?></p>
+<?php else: ?>
+ <div class="table-list">
+ <?= $this->render('task_list/header', array(
+ 'paginator' => $paginator,
+ )) ?>
+
+ <?php foreach ($paginator->getCollection() as $task): ?>
+ <?= $this->render('task_list/task_project_name', array(
+ 'task' => $task
+ )) ?>
+ <div class="table-list-row color-<?= $task['color_id'] ?>">
+ <?= $this->render('task_list/task_title', array(
+ 'task' => $task,
+ 'redirect' => 'dashboard-tasks',
+ 'is_subtask' => FALSE
+ )) ?>
+
+ <?= $this->render('task_list/task_details', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_avatars', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_icons', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_subtasks', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->hook->render('template:dashboard:task:footer', array('task' => $task)) ?>
+ </div>
+ <?php endforeach ?>
+ </div>
+
+ <?= $paginator ?>
+<?php endif ?>
diff --git a/app/Template/task_list/task_details.php b/app/Template/task_list/task_details.php
index 03e1d3eb..5230a8b5 100644
--- a/app/Template/task_list/task_details.php
+++ b/app/Template/task_list/task_details.php
@@ -1,5 +1,7 @@
<div class="table-list-details">
+<?php if (!isset($task['render_project_name'])): ?>
<?= $this->text->e($task['project_name']) ?> &gt;
+<?php endif ?>
<?= $this->text->e($task['swimlane_name']) ?> &gt;
<?= $this->text->e($task['column_name']) ?>
diff --git a/app/Template/task_list/task_project_name.php b/app/Template/task_list/task_project_name.php
new file mode 100644
index 00000000..c4a6095a
--- /dev/null
+++ b/app/Template/task_list/task_project_name.php
@@ -0,0 +1,5 @@
+<?php if (isset($task['render_project_name']) && $task['render_project_name']): ?>
+<h2>
+ <?= $task['project_name'] ?>
+</h2>
+<?php endif ?>