Allow upvoting own Q&A questions as an opt-in setting
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped

The new Q&A setting allow_self_upvote (off by default) lets participants
spend their upvote budget on their own questions, e.g. for prioritizing
topics. Without it, participants now see a short hint why their own
questions cannot be upvoted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-08 20:23:53 +01:00
1 parent ec0b13cae8
commit affc9a5ece
10 files changed
+59 -12

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ $hasInternal = array_filter($slides, fn($slide) => $slide->isInteractive() && $s
'collect' => __('Fragen sammeln'),
'vote' => __('Abstimmung läuft'),
'discuss' => __('Fragen werden besprochen'),
][$slide->qaStage()]) ?> · <?= __n('max. {0} Upvote pro Person', 'max. {0} Upvotes pro Person', (int)$slide->setting('max_upvotes'), (int)$slide->setting('max_upvotes')) ?></span>
][$slide->qaStage()]) ?> · <?= __n('max. {0} Upvote pro Person', 'max. {0} Upvotes pro Person', (int)$slide->setting('max_upvotes'), (int)$slide->setting('max_upvotes')) ?><?= $slide->setting('allow_self_upvote') ? ' · ' . __('auch für eigene Fragen') : '' ?></span>
<?php elseif ($slide->isOrder() && !$slide->is_voting_open) : ?>
<span class="muted">· <?= __('Abstimmung geschlossen, aufgelöst') ?></span>
<?php elseif (!$slide->is_voting_open) : ?><span class="muted">· <?= __('Abstimmung geschlossen') ?></span><?php endif; ?>
+7
View File
@@ -291,6 +291,13 @@ $optionsError = $slide->getError('options_text');
'aria-describedby' => 'qa-upvotes-hint',
]) ?>
<p class="hint" id="qa-upvotes-hint"><?= __('So viele Stimmen hat jede Person beim Abstimmen. Sie lassen sich frei auf Fragen anderer verteilen – mehrere auf eine Frage geben ihr mehr Gewicht.') ?></p>
<?= $this->Form->control('settings.allow_self_upvote', [
'type' => 'checkbox',
'label' => __('Stimmen für eigene Fragen erlauben'),
'checked' => (bool)$settings['allow_self_upvote'],
'aria-describedby' => 'qa-self-upvote-hint',
]) ?>
<p class="hint" id="qa-self-upvote-hint"><?= __('Sinnvoll, wenn ihr Themen priorisiert („Was besprechen wir heute?“). Bei normalen Fragerunden lieber aus: Sonst landen oft die Fragen derjenigen vorn, die alle Stimmen sich selbst geben.') ?></p>
<p class="hint"><?= __('Ablauf in der Präsentation: 1. Fragen sammeln, 2. abstimmen, 3. besprechen – die Frage mit den meisten Upvotes zuerst. Du schaltest die Schritte selbst weiter.') ?></p>
<?php endif; ?>