diff options
Diffstat (limited to 'app/Template/task')
-rw-r--r-- | app/Template/task/events.php | 25 | ||||
-rw-r--r-- | app/Template/task/sidebar.php | 3 |
2 files changed, 28 insertions, 0 deletions
diff --git a/app/Template/task/events.php b/app/Template/task/events.php new file mode 100644 index 00000000..188f46fe --- /dev/null +++ b/app/Template/task/events.php @@ -0,0 +1,25 @@ +<div class="page-header"> + <h2><?= t('Activity stream') ?></h2> +</div> + +<?php if (empty($events)): ?> + <p class="alert"><?= t('No activity.') ?></p> +<?php else: ?> + + <?php foreach ($events as $event): ?> + <div class="activity-event"> + <p class="activity-datetime"> + <?php if ($this->contains($event['event_name'], 'subtask')): ?> + <i class="fa fa-tasks"></i> + <?php elseif ($this->contains($event['event_name'], 'task')): ?> + <i class="fa fa-newspaper-o"></i> + <?php elseif ($this->contains($event['event_name'], 'comment')): ?> + <i class="fa fa-comments-o"></i> + <?php endif ?> + <?= dt('%B %e, %Y at %k:%M %p', $event['date_creation']) ?> + </p> + <div class="activity-content"><?= $event['event_content'] ?></div> + </div> + <?php endforeach ?> + +<?php endif ?>
\ No newline at end of file diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index cb3b3c69..e911d5cd 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -5,6 +5,9 @@ <?= $this->a(t('Summary'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </li> <li> + <?= $this->a(t('Activity stream'), 'task', 'activites', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + </li> + <li> <?= $this->a(t('Transitions'), 'task', 'transitions', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </li> <?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?> |