aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorwinter2025-01-13 21:12:22 +0000
committerwinter2025-01-13 21:12:22 +0000
commitc298fa4d4cc4277c1f7c2a54d9fb98b395b9bc12 (patch)
tree4037c3bfc88a585085a3db5c0c8455fad702eff5 /templates
parent5e5b7c5d6d4bbdd4acaea7d4b6c5be1e27b04a86 (diff)
tidy stylesheets and improve replies styling
Diffstat (limited to 'templates')
-rw-r--r--templates/note.php1
-rw-r--r--templates/reply_button.php7
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/note.php b/templates/note.php
index 56f1322..1fb03a9 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -30,6 +30,7 @@ if ($user != null) {
<?php if (isset($note->inReplyTo)): ?>
<div class="replyInfo">
<a href="/@/<?= $note->inReplyTo->author->getFullHandle() ?>/note/<?= $note->inReplyTo->id ?>">
+ <span class="material-symbols-outlined inlineIcon">reply</span>
<?= sprintf(__('note.info.replyTo'),
'<b>' . $note->inReplyTo->author->displayName) . '</b>' ?>
</a>
diff --git a/templates/reply_button.php b/templates/reply_button.php
index 6b755df..1b9736b 100644
--- a/templates/reply_button.php
+++ b/templates/reply_button.php
@@ -1,2 +1,7 @@
+<?php
+use Digitigrade\Model\Note;
+
+$icon = count(Note::findAllInThread($note, 2)) > 1 ? 'reply_all' : 'reply';
+?>
<button title="<?= __('note.action.reply') ?>" class="icon material-symbols-outlined reply"
- _="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active">reply</button> \ No newline at end of file
+ _="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active"><?= $icon ?></button> \ No newline at end of file