summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-08 22:02:42 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-08 22:02:42 -0500
commitf91f3214c12e315afd8984653ea2d9db8408793d (patch)
tree45de211e61189da032f1646f67c4de2a566558dc /app/Template
parentd4eea1e252771e5f764c7654c7b9fc1b86b2ce9d (diff)
Always display project name and task title in task views
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/activity/task.php4
-rw-r--r--app/Template/subtask/show.php6
-rw-r--r--app/Template/task/analytics.php3
-rw-r--r--app/Template/task/time_tracking_details.php4
-rw-r--r--app/Template/task/transitions.php4
-rw-r--r--app/Template/task_external_link/show.php4
-rw-r--r--app/Template/tasklink/show.php6
7 files changed, 31 insertions, 0 deletions
diff --git a/app/Template/activity/task.php b/app/Template/activity/task.php
index cc4aad03..04c64c63 100644
--- a/app/Template/activity/task.php
+++ b/app/Template/activity/task.php
@@ -1,3 +1,7 @@
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
+
<div class="page-header">
<h2><?= t('Activity stream') ?></h2>
</div>
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php
index 999016c3..2eda357b 100644
--- a/app/Template/subtask/show.php
+++ b/app/Template/subtask/show.php
@@ -1,3 +1,9 @@
+<?php if (isset($show_title)): ?>
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
+<?php endif ?>
+
<div class="page-header">
<h2><?= t('Sub-Tasks') ?></h2>
</div>
diff --git a/app/Template/task/analytics.php b/app/Template/task/analytics.php
index 2f2c23a1..54eac2b7 100644
--- a/app/Template/task/analytics.php
+++ b/app/Template/task/analytics.php
@@ -1,3 +1,6 @@
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
<div class="page-header">
<h2><?= t('Analytics') ?></h2>
</div>
diff --git a/app/Template/task/time_tracking_details.php b/app/Template/task/time_tracking_details.php
index e2b599a5..c51b8f5a 100644
--- a/app/Template/task/time_tracking_details.php
+++ b/app/Template/task/time_tracking_details.php
@@ -1,3 +1,7 @@
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
+
<?= $this->render('task/time_tracking_summary', array('task' => $task)) ?>
<h3><?= t('Subtask timesheet') ?></h3>
diff --git a/app/Template/task/transitions.php b/app/Template/task/transitions.php
index 57f1e0ff..83040177 100644
--- a/app/Template/task/transitions.php
+++ b/app/Template/task/transitions.php
@@ -1,3 +1,7 @@
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
+
<div class="page-header">
<h2><?= t('Transitions') ?></h2>
</div>
diff --git a/app/Template/task_external_link/show.php b/app/Template/task_external_link/show.php
index 7dce107e..0b9567ba 100644
--- a/app/Template/task_external_link/show.php
+++ b/app/Template/task_external_link/show.php
@@ -1,3 +1,7 @@
+<div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+</div>
+
<div class="page-header">
<h2><?= t('External links') ?></h2>
</div>
diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php
index 8527a344..cd255877 100644
--- a/app/Template/tasklink/show.php
+++ b/app/Template/tasklink/show.php
@@ -1,3 +1,9 @@
+<?php if (isset($show_title)): ?>
+ <div class="task-show-title color-<?= $task['color_id'] ?>">
+ <h2><?= $this->text->e($task['title']) ?></h2>
+ </div>
+<?php endif ?>
+
<div class="page-header">
<h2><?= t('Internal links') ?></h2>
</div>