diff options
| author | winter | 2025-01-13 20:57:26 +0000 |
|---|---|---|
| committer | winter | 2025-01-13 20:57:26 +0000 |
| commit | 5e5b7c5d6d4bbdd4acaea7d4b6c5be1e27b04a86 (patch) | |
| tree | cb8c66bc1cc02df8e01ee5c8ec18ec74d3dde739 /templates/thread_page.php | |
| parent | f31d2abc237958bd9f33875f20198c4510389556 (diff) | |
make the thread page work
Diffstat (limited to 'templates/thread_page.php')
| -rw-r--r-- | templates/thread_page.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/thread_page.php b/templates/thread_page.php index 73d8f0b..e5e5389 100644 --- a/templates/thread_page.php +++ b/templates/thread_page.php @@ -1,8 +1,13 @@ <?php +use Digitigrade\Model\Note; + call_template('skeleton', [ 'pageTitle' => '"' . $note->plainContent . '" - @' . $note->author->getFullHandle(), 'renderTitleHeading' => false ], function () { global $note; - call_template('note', ['note' => $note]); + $notes = Note::findAllInThread($note->threadApex ?? $note); + foreach ($notes as $n) { + call_template('note', ['note' => $n, 'selected' => $n == $note]); + } });
\ No newline at end of file |
