aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/timeline.php
diff options
context:
space:
mode:
authorwinter2025-01-15 20:33:38 +0000
committerwinter2025-01-15 20:33:38 +0000
commit75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch)
tree6240a96338f58b5f175e97132a4ce5d804e3b2da /templates/timeline.php
parent07df9da970ceaa54c734d73bdb148fa36d42db63 (diff)
implement home timeline
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