mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
37 lines
1.8 KiB
PHP
37 lines
1.8 KiB
PHP
|
<section id="main">
|
||
|
<div class="page-header">
|
||
|
<h2><?= t('%s\'s activity', $project['name']) ?></h2>
|
||
|
<ul>
|
||
|
<li><a href="?controller=board&action=show&project_id=<?= $project['id'] ?>"><?= t('Back to the board') ?></a></li>
|
||
|
<li><a href="?controller=project&action=search&project_id=<?= $project['id'] ?>"><?= t('Search') ?></a></li>
|
||
|
<li><a href="?controller=project&action=tasks&project_id=<?= $project['id'] ?>"><?= t('Completed tasks') ?></a></li>
|
||
|
<li><a href="?controller=project&action=index"><?= t('List of projects') ?></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<section>
|
||
|
<?php if (empty($events)): ?>
|
||
|
<p class="alert"><?= t('No activity.') ?></p>
|
||
|
<?php else: ?>
|
||
|
|
||
|
<?php if ($project['is_public']): ?>
|
||
|
<p class="pull-right"><i class="fa fa-rss-square"></i> <a href="?controller=project&action=feed&token=<?= $project['token'] ?>" target="_blank"><?= t('RSS feed') ?></a></p>
|
||
|
<?php endif ?>
|
||
|
|
||
|
<?php foreach ($events as $event): ?>
|
||
|
<div class="activity-event">
|
||
|
<p class="activity-datetime">
|
||
|
<?php if ($event['event_type'] === 'task'): ?>
|
||
|
<i class="fa fa-newspaper-o"></i>
|
||
|
<?php elseif ($event['event_type'] === 'subtask'): ?>
|
||
|
<i class="fa fa-tasks"></i>
|
||
|
<?php elseif ($event['event_type'] === '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 ?>
|
||
|
</section>
|
||
|
</section>
|