2014-11-23 20:13:38 +01:00
|
|
|
<?php if (empty($events)): ?>
|
2015-08-16 17:04:56 +02:00
|
|
|
<p class="alert"><?= t('There is no activity yet.') ?></p>
|
2014-11-23 20:13:38 +01:00
|
|
|
<?php else: ?>
|
|
|
|
|
|
|
|
<?php foreach ($events as $event): ?>
|
|
|
|
<div class="activity-event">
|
|
|
|
<p class="activity-datetime">
|
2015-08-16 17:04:56 +02:00
|
|
|
<?php if ($this->text->contains($event['event_name'], 'subtask')): ?>
|
2014-11-23 20:13:38 +01:00
|
|
|
<i class="fa fa-tasks"></i>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?php elseif ($this->text->contains($event['event_name'], 'task.move')): ?>
|
|
|
|
<i class="fa fa-arrows-alt"></i>
|
|
|
|
<?php elseif ($this->text->contains($event['event_name'], 'task')): ?>
|
2014-11-23 20:13:38 +01:00
|
|
|
<i class="fa fa-newspaper-o"></i>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?php elseif ($this->text->contains($event['event_name'], 'comment')): ?>
|
2014-11-23 20:13:38 +01:00
|
|
|
<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 ?>
|