blob: 4886b1c9581145423ca51200397a1ea0ad9b2c1f (
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
29
|
<?php use Digitigrade\Model\NotePrivacyScope; ?>
<div class="infoLine">
<a class="authorName"
href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>"><?= htmlspecialchars($note->author->displayName) ?></a>
<span class="authorPronouns">
<?php if (isset($note->author->pronouns) && trim($note->author->pronouns) != '') {
echo htmlspecialchars($note->author->pronouns);
} ?>
</span>
<a class="timestamp" href="<?= htmlspecialchars($note->getLocalUiHref()) ?>">
<?= format_datetime($note->created) ?>
</a>
<span class="privacyScope">
<?php if ($note->author->automated): ?>
<span class="inlineIcon material-symbols person-off-outline" title="<?= __('user.profile.automated') ?>"></span>
<?php endif; ?>
<span class="inlineIcon material-symbols <?= match ($note->privacy->scope) {
NotePrivacyScope::NONE => 'lock',
NotePrivacyScope::MUTUALS => 'group',
NotePrivacyScope::FOLLOWERS => 'groups',
NotePrivacyScope::PUBLIC => 'public'
} ?>" title="<?= match ($note->privacy->scope) {
NotePrivacyScope::NONE => __('note.privacy.scope.none'),
NotePrivacyScope::MUTUALS => __('note.privacy.scope.mutuals'),
NotePrivacyScope::FOLLOWERS => __('note.privacy.scope.followers'),
NotePrivacyScope::PUBLIC => __('note.privacy.scope.public')
} ?>"></span>
</span>
</div>
|