aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/thread_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/thread_page.php')
-rw-r--r--templates/thread_page.php7
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