1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/event/events.php

23 lines
1 KiB
PHP
Raw Normal View History

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 ?>
&nbsp;<?= 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 ?>