diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-14 22:02:35 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-14 22:02:35 -0400 |
commit | 286b1935663ef3071ad6a0aae3078ad3a42b48e4 (patch) | |
tree | 80469612ac9feba9bea28c1ac7f263e680f52d49 /app/Templates/app_index.php | |
parent | d0e6d2e1f177cfe533ea7819bf79b0469b8d0cc2 (diff) |
Add a dashboard (first version)
Diffstat (limited to 'app/Templates/app_index.php')
-rw-r--r-- | app/Templates/app_index.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app/Templates/app_index.php b/app/Templates/app_index.php new file mode 100644 index 00000000..91eecce4 --- /dev/null +++ b/app/Templates/app_index.php @@ -0,0 +1,45 @@ +<section id="main"> + <div class="page-header"> + <h2><?= t('Dashboard') ?></h2> + </div> + <section id="dashboard"> + <div class="dashboard-left-column"> + <h2><?= t('My tasks') ?></h2> + <?php if (empty($tasks)): ?> + <p class="alert"><?= t('There is nothing assigned to you.') ?></p> + <?php else: ?> + <table> + <tr> + <th> </th> + <th width="15%"><?= t('Project') ?></th> + <th width="40%"><?= t('Title') ?></th> + <th><?= t('Due date') ?></th> + <th><?= t('Date created') ?></th> + </tr> + <?php foreach ($tasks as $task): ?> + <tr> + <td class="task-table task-<?= $task['color_id'] ?>"> + <?= Helper\a('#'.$task['id'], 'task', 'show', array('task_id' => $task['id'])) ?> + </td> + <td> + <?= Helper\a(Helper\escape($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?> + </td> + <td> + <?= Helper\a(Helper\escape($task['title']), 'task', 'show', array('task_id' => $task['id'])) ?> + </td> + <td> + <?= dt('%B %e, %Y', $task['date_due']) ?> + </td> + <td> + <?= dt('%B %e, %Y', $task['date_creation']) ?> + </td> + </tr> + <?php endforeach ?> + </table> + <?php endif ?> + </div> + <div class="dashboard-right-column"> + <h2><?= t('Activity stream') ?></h2> + <?= Helper\template('project_events', array('events' => $events)) ?> + </section> +</section>
\ No newline at end of file |