summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-20 22:54:42 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-20 22:54:42 -0500
commitf3e5fdb137e12a927b6b29d6a80411170bfa3c19 (patch)
tree9e44a8a9a729cde6196827cab08a116b35acb3dc /app
parent6df53e54da5043ac9ba953bb441309d154b684bb (diff)
Make dashboard section title clickable
Diffstat (limited to 'app')
-rw-r--r--app/Template/app/overview.php6
-rw-r--r--app/Template/app/projects.php2
-rw-r--r--app/Template/app/subtasks.php2
-rw-r--r--app/Template/app/tasks.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/app/Template/app/overview.php b/app/Template/app/overview.php
index 1b160496..ebb3b412 100644
--- a/app/Template/app/overview.php
+++ b/app/Template/app/overview.php
@@ -8,6 +8,6 @@
<?= $this->render('app/filters_helper') ?>
</div>
-<?= $this->render('app/projects', array('paginator' => $project_paginator)) ?>
-<?= $this->render('app/tasks', array('paginator' => $task_paginator)) ?>
-<?= $this->render('app/subtasks', array('paginator' => $subtask_paginator)) ?> \ No newline at end of file
+<?= $this->render('app/projects', array('paginator' => $project_paginator, 'user' => $user)) ?>
+<?= $this->render('app/tasks', array('paginator' => $task_paginator, 'user' => $user)) ?>
+<?= $this->render('app/subtasks', array('paginator' => $subtask_paginator, 'user' => $user)) ?> \ No newline at end of file
diff --git a/app/Template/app/projects.php b/app/Template/app/projects.php
index f9267e39..82a41123 100644
--- a/app/Template/app/projects.php
+++ b/app/Template/app/projects.php
@@ -1,5 +1,5 @@
<div class="page-header">
- <h2><?= t('My projects') ?> (<?= $paginator->getTotal() ?>)</h2>
+ <h2><?= $this->url->link(t('My projects'), 'app', 'projects', array('user_id' => $user['id'])) ?> (<?= $paginator->getTotal() ?>)</h2>
</div>
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('Your are not member of any project.') ?></p>
diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php
index ad7402bd..b4c87bab 100644
--- a/app/Template/app/subtasks.php
+++ b/app/Template/app/subtasks.php
@@ -1,5 +1,5 @@
<div class="page-header">
- <h2><?= t('My subtasks') ?> (<?= $paginator->getTotal() ?>)</h2>
+ <h2><?= $this->url->link(t('My subtasks'), 'app', 'subtasks', array('user_id' => $user['id'])) ?> (<?= $paginator->getTotal() ?>)</h2>
</div>
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('There is nothing assigned to you.') ?></p>
diff --git a/app/Template/app/tasks.php b/app/Template/app/tasks.php
index 3712750b..1213e405 100644
--- a/app/Template/app/tasks.php
+++ b/app/Template/app/tasks.php
@@ -1,5 +1,5 @@
<div class="page-header">
- <h2><?= t('My tasks') ?> (<?= $paginator->getTotal() ?>)</h2>
+ <h2><?= $this->url->link(t('My tasks'), 'app', '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>