Display same task summary on all task view pages

This commit is contained in:
Frederic Guillot
2016-08-13 20:23:04 -04:00
parent ada3e6f89d
commit 521379a350
9 changed files with 68 additions and 60 deletions

View File

@@ -40,6 +40,7 @@ class ActivityController extends BaseController
'task' => $task, 'task' => $task,
'project' => $this->projectModel->getById($task['project_id']), 'project' => $this->projectModel->getById($task['project_id']),
'events' => $this->helper->projectActivity->getTaskEvents($task['id']), 'events' => $this->helper->projectActivity->getTaskEvents($task['id']),
'tags' => $this->taskTagModel->getList($task['id']),
))); )));
} }
} }

View File

@@ -91,6 +91,7 @@ class TaskViewController extends BaseController
'lead_time' => $this->taskAnalyticModel->getLeadTime($task), 'lead_time' => $this->taskAnalyticModel->getLeadTime($task),
'cycle_time' => $this->taskAnalyticModel->getCycleTime($task), 'cycle_time' => $this->taskAnalyticModel->getCycleTime($task),
'time_spent_columns' => $this->taskAnalyticModel->getTimeSpentByColumn($task), 'time_spent_columns' => $this->taskAnalyticModel->getTimeSpentByColumn($task),
'tags' => $this->taskTagModel->getList($task['id']),
))); )));
} }
@@ -115,6 +116,7 @@ class TaskViewController extends BaseController
'task' => $task, 'task' => $task,
'project' => $this->projectModel->getById($task['project_id']), 'project' => $this->projectModel->getById($task['project_id']),
'subtask_paginator' => $subtask_paginator, 'subtask_paginator' => $subtask_paginator,
'tags' => $this->taskTagModel->getList($task['id']),
))); )));
} }
@@ -131,6 +133,7 @@ class TaskViewController extends BaseController
'task' => $task, 'task' => $task,
'project' => $this->projectModel->getById($task['project_id']), 'project' => $this->projectModel->getById($task['project_id']),
'transitions' => $this->transitionModel->getAllByTask($task['id']), 'transitions' => $this->transitionModel->getAllByTask($task['id']),
'tags' => $this->taskTagModel->getList($task['id']),
))); )));
} }
} }

View File

@@ -1,6 +1,9 @@
<div class="task-show-title color-<?= $task['color_id'] ?>"> <?= $this->render('task/details', array(
<h2><?= $this->text->e($task['title']) ?></h2> 'task' => $task,
</div> 'tags' => $tags,
'project' => $project,
'editable' => false,
)) ?>
<div class="page-header"> <div class="page-header">
<h2><?= t('Activity stream') ?></h2> <h2><?= t('Activity stream') ?></h2>

View File

@@ -1,6 +1,10 @@
<div class="task-show-title color-<?= $task['color_id'] ?>"> <?= $this->render('task/details', array(
<h2><?= $this->text->e($task['title']) ?></h2> 'task' => $task,
</div> 'tags' => $tags,
'project' => $project,
'editable' => false,
)) ?>
<div class="page-header"> <div class="page-header">
<h2><?= t('Analytics') ?></h2> <h2><?= t('Analytics') ?></h2>
</div> </div>

View File

@@ -1,6 +1,9 @@
<div class="task-show-title color-<?= $task['color_id'] ?>"> <?= $this->render('task/details', array(
<h2><?= $this->text->e($task['title']) ?></h2> 'task' => $task,
</div> 'tags' => $tags,
'project' => $project,
'editable' => false,
)) ?>
<?= $this->render('task/time_tracking_summary', array('task' => $task)) ?> <?= $this->render('task/time_tracking_summary', array('task' => $task)) ?>

View File

@@ -1,6 +1,9 @@
<div class="task-show-title color-<?= $task['color_id'] ?>"> <?= $this->render('task/details', array(
<h2><?= $this->text->e($task['title']) ?></h2> 'task' => $task,
</div> 'tags' => $tags,
'project' => $project,
'editable' => false,
)) ?>
<div class="page-header"> <div class="page-header">
<h2><?= t('Transitions') ?></h2> <h2><?= t('Transitions') ?></h2>

File diff suppressed because one or more lines are too long

View File

@@ -27,12 +27,3 @@
color: color('medium') color: color('medium')
li li
line-height: 23px line-height: 23px
.task-show-title
border: 2px solid #000
border-radius: 8px
margin-bottom: 20px
h2
color: color('medium')
margin: 0
padding: 8px