diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-14 22:02:35 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-14 22:02:35 -0400 |
commit | 286b1935663ef3071ad6a0aae3078ad3a42b48e4 (patch) | |
tree | 80469612ac9feba9bea28c1ac7f263e680f52d49 /app/Templates/project_activity.php | |
parent | d0e6d2e1f177cfe533ea7819bf79b0469b8d0cc2 (diff) |
Add a dashboard (first version)
Diffstat (limited to 'app/Templates/project_activity.php')
-rw-r--r-- | app/Templates/project_activity.php | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/app/Templates/project_activity.php b/app/Templates/project_activity.php index 50743d68..d07ba86a 100644 --- a/app/Templates/project_activity.php +++ b/app/Templates/project_activity.php @@ -9,29 +9,10 @@ </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> <?= Helper\a(t('RSS feed'), 'project', 'feed', array('token' => $project['token'])) ?></p> <?php endif ?> - <?php foreach ($events as $event): ?> - <div class="activity-event"> - <p class="activity-datetime"> - <?php if (Helper\contains($event['event_name'], 'task')): ?> - <i class="fa fa-newspaper-o"></i> - <?php elseif (Helper\contains($event['event_name'], 'subtask')): ?> - <i class="fa fa-tasks"></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 ?> + <?= Helper\template('project_events', array('events' => $events)) ?> </section> </section>
\ No newline at end of file |