diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/note.php | 1 | ||||
| -rw-r--r-- | templates/reply_button.php | 7 |
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 |
