aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/timeline.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/timeline.php')
-rw-r--r--templates/timeline.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/timeline.php b/templates/timeline.php
index 7ba2fbf..a65b4ce 100644
--- a/templates/timeline.php
+++ b/templates/timeline.php
@@ -1,11 +1,20 @@
<?php call_template('skeleton', ['pageTitle' => __("timeline.$kind")], function () {
global $items, $kind;
- call_template('alertbox', [
- 'variety' => 'info',
- 'message' => __("timeline.$kind.description")
- ]);
+ if ($kind != 'home') {
+ call_template('alertbox', [
+ 'variety' => 'info',
+ 'message' => __("timeline.$kind.description")
+ ]);
+ } else {
+ call_template('live_timeline_updater', [
+ 'kind' => 'home',
+ 'since' => new DateTimeImmutable()
+ ]);
+ }
+ echo '<div id="timelineItems">';
foreach ($items as $item) {
$item->getReason()?->renderAsHtml();
$item->getObject()->renderAsHtml();
}
+ echo '</div>';
}); \ No newline at end of file