aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/actor/profile.php6
-rw-r--r--templates/note/info_line.php33
2 files changed, 23 insertions, 16 deletions
diff --git a/templates/actor/profile.php b/templates/actor/profile.php
index 3e1a11e..4e5f66a 100644
--- a/templates/actor/profile.php
+++ b/templates/actor/profile.php
@@ -23,6 +23,12 @@ $actorUser = UserAccount::findByLinkedActor($actor);
<div class="pronouns"><?= htmlspecialchars($actor->pronouns) ?></div>
<div class="handle">@<?= $actor->getFullHandle() ?></div>
<div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?></div>
+ <?php if ($actor->automated): ?>
+ <div class="inlinePill">
+ <span class="pillIcon material-symbols person-off-outline"></span>
+ <span class="pillText"><?= __('user.profile.automated') ?></span>
+ </div>
+ <?php endif; ?>
</div>
<div class="profileMiniActions">
diff --git a/templates/note/info_line.php b/templates/note/info_line.php
index acc85d7..4886b1c 100644
--- a/templates/note/info_line.php
+++ b/templates/note/info_line.php
@@ -1,8 +1,4 @@
-<?php
-
-use Digitigrade\Model\NotePrivacyScope;
-
-?>
+<?php use Digitigrade\Model\NotePrivacyScope; ?>
<div class="infoLine">
<a class="authorName"
href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>"><?= htmlspecialchars($note->author->displayName) ?></a>
@@ -14,15 +10,20 @@ use Digitigrade\Model\NotePrivacyScope;
<a class="timestamp" href="<?= htmlspecialchars($note->getLocalUiHref()) ?>">
<?= format_datetime($note->created) ?>
</a>
- <span class="privacyScope 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 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> \ No newline at end of file