diff options
Diffstat (limited to 'templates/reply_button.php')
| -rw-r--r-- | templates/reply_button.php | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
