aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/timeline.php
blob: a65b4cead6432445d2bba251fd1d0b95ce3ef963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php call_template('skeleton', ['pageTitle' => __("timeline.$kind")], function () {
    global $items, $kind;
    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>';
});