summaryrefslogtreecommitdiff
path: root/app/Template/event/events.php
blob: 2dc7987112b33dff62c25c88a34478029fd73f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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->text->contains($event['event_name'], 'subtask')): ?>
                    <i class="fa fa-tasks"></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 ?>
                &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 ?>