diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-01 21:23:46 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-01 21:23:46 -0500 |
commit | 50a9e2ba7db6a155cee75771d73c584d721cf687 (patch) | |
tree | cf985e7050b9293e2ec4b13d40689a4a0b10644f /app/Template/project/events.php | |
parent | 67eae33fb88e840047a33558de56090d8bcc62fb (diff) |
Move project templates to a subfolder
Diffstat (limited to 'app/Template/project/events.php')
-rw-r--r-- | app/Template/project/events.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Template/project/events.php b/app/Template/project/events.php new file mode 100644 index 00000000..1b606414 --- /dev/null +++ b/app/Template/project/events.php @@ -0,0 +1,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 (Helper\contains($event['event_name'], 'subtask')): ?> + <i class="fa fa-tasks"></i> + <?php elseif (Helper\contains($event['event_name'], 'task')): ?> + <i class="fa fa-newspaper-o"></i> + <?php elseif (Helper\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 |