aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note/reply_button.php
blob: 79267b693bb35a21aeec3bcdf7540eecd4a6a3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
use Digitigrade\Model\Note;

/** @var Note $note */

$icon = $note->inReplyTo == null ? 'reply' : 'reply-all';
$id = "interactButton-reply-$note->id";
?>
<div class="interactButtonContainer reply">
  <button title="<?= __('note.action.reply' . ($disabled ? '.forbidden' : '')) ?>" class="material-symbols <?= $icon ?>"
    id="<?= $id ?>" <?= ($disabled ?? false) ? 'disabled' : '' ?> _="
        on click
          send toggle to [me, next .noteReplyForm]
          tell next <textarea/> js(you) you.focus() end
        on toggle toggle .active on closest <div/>"></button>
  <label for="<?= $id ?>"><?= $count ?? '' ?></label>
</div>