blob: 31795e4c1fe4350139dcbfe7ec3fde58de0716d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<article class="note">
<a href="/@/<?= $note->author->getFullHandle() ?>">
<?php call_template('actor_avatar', ['actor' => $note->author]); ?>
</a>
<div>
<div class="infoLine">
<span class="authorName"><?= $note->author->displayName ?></span>
<span class="authorHandle">@<?= $note->author->getFullHandle() ?></span>
<span class="timestamp">
<?=
$note->created->format('Y-m-d \a\t H:i')
. (isset($note->modified) && $note->modified != $note->created
? ' (edited ' . $note->modified->format('Y-m-d \a\t H:i') . ')'
: ''
)
?>
</span>
</div>
<div class="content">
<?= $note->getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?>
</div>
<div class="buttons">
<button title="Like" class="icon material-symbols-outlined">favorite</button>
<button title="Dislike" class="icon material-symbols-outlined">heart_broken</button>
<button title="Reshare" class="icon material-symbols-outlined">repeat</button>
</div>
</div>
</article>
|