diff options
| author | winter | 2025-03-15 18:35:59 +0000 |
|---|---|---|
| committer | winter | 2025-03-15 18:52:54 +0000 |
| commit | 61b122e88cc6783b4d0cf5142a22002f8e558c60 (patch) | |
| tree | 847b864a93f716157456891d4526077e5f0b93f7 /templates/pages_list_item.php | |
| parent | cb904ef3fb05ab106d5e5e12f6273b8117db4216 (diff) | |
implement pages
Diffstat (limited to 'templates/pages_list_item.php')
| -rw-r--r-- | templates/pages_list_item.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/pages_list_item.php b/templates/pages_list_item.php new file mode 100644 index 0000000..7944956 --- /dev/null +++ b/templates/pages_list_item.php @@ -0,0 +1,11 @@ +<?php +/** @var \Digitigrade\Model\Note $note */ +$page = $note->getPage(); +?> +<a class="pageItem" href="<?= htmlspecialchars($note->getLocalUiHref(true)) ?>"> + <?= call_template('actor_avatar', ['actor' => $note->author]) ?> + <div> + <div class="title"><?= htmlspecialchars($page->title) ?></div> + <div class="author"><?= htmlspecialchars($note->author->displayName) ?></div> + </div> +</a>
\ No newline at end of file |
