aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/reply_button.php
diff options
context:
space:
mode:
authorwinter2025-01-14 18:13:57 +0000
committerwinter2025-01-14 18:13:57 +0000
commit25b748f04911262826d0a0bc9609e03ee47c3232 (patch)
tree35dc82bd0cb1798913f726fb6bb74be97e5b83ba /templates/reply_button.php
parent2082bfe9a378a90b33d4ab5c05dbb19a3457bef6 (diff)
add interaction counters
Diffstat (limited to 'templates/reply_button.php')
-rw-r--r--templates/reply_button.php10
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