diff options
| author | winter | 2025-01-14 18:13:57 +0000 |
|---|---|---|
| committer | winter | 2025-01-14 18:13:57 +0000 |
| commit | 25b748f04911262826d0a0bc9609e03ee47c3232 (patch) | |
| tree | 35dc82bd0cb1798913f726fb6bb74be97e5b83ba /templates/reply_button.php | |
| parent | 2082bfe9a378a90b33d4ab5c05dbb19a3457bef6 (diff) | |
add interaction counters
Diffstat (limited to 'templates/reply_button.php')
| -rw-r--r-- | templates/reply_button.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/reply_button.php b/templates/reply_button.php index 1b9736b..aeaeabd 100644 --- a/templates/reply_button.php +++ b/templates/reply_button.php @@ -2,6 +2,10 @@ 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"><?= $icon ?></button>
\ No newline at end of file +$id = "interactButton-reply-$note->id" + ?> +<div class="interactButtonContainer reply"> + <button title="<?= __('note.action.reply') ?>" class="icon material-symbols-outlined reply" id="<?= $id ?>" + _="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active on closest <div/>"><?= $icon ?></button> + <label for="<?= $id ?>"><?= $count ?? '' ?></label> +</div>
\ No newline at end of file |
