diff options
Diffstat (limited to 'app/Template/event/events.php')
-rw-r--r-- | app/Template/event/events.php | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/app/Template/event/events.php b/app/Template/event/events.php index 6bef8df4..ef651321 100644 --- a/app/Template/event/events.php +++ b/app/Template/event/events.php @@ -1,32 +1,19 @@ <?php if (empty($events)): ?> <p class="alert"><?= t('There is no activity yet.') ?></p> <?php else: ?> - <?php foreach ($events as $event): ?> <div class="activity-event"> - <p class="activity-datetime"> - <?php if ($this->text->contains($event['event_name'], 'subtask')): ?> - <i class="fa fa-tasks"></i> - <?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')): ?> - <i class="fa fa-newspaper-o"></i> - <?php elseif ($this->text->contains($event['event_name'], 'comment')): ?> - <i class="fa fa-comments-o"></i> - <?php endif ?> - <?= $this->dt->datetime($event['date_creation']) ?> - </p> - <div class="activity-content"> - <?= $this->avatar->render( - $event['creator_id'], - $event['author_username'], - $event['author_name'], - $event['email'] - ) ?> + <?= $this->avatar->render( + $event['creator_id'], + $event['author_username'], + $event['author_name'], + $event['email'] + ) ?> + <div class="activity-content"> <?= $event['event_content'] ?> </div> </div> <?php endforeach ?> +<?php endif ?> -<?php endif ?>
\ No newline at end of file |