Hide Q&A upvote counts until voting ends
CI / Deploy / test (push) Successful in 1m0s
CI / Deploy / deploy (push) Skipped

A live ranking on the stage swayed the vote. During the vote stage the
presenter now gets the questions in submission order without counts,
only the total of votes cast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 15:05:09 +01:00
1 parent 891e3cb174
commit 759e15390e
5 files changed
+21 -11

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ $bar = function (float $percent, bool $ok = false): string {
<?php if ($r['questions'] === []) : ?>
<p class="empty"><?= __('Keine Fragen eingereicht.') ?></p>
<?php else : ?>
<?php $withUpvotes = $r['maxUpvotes'] > 0; ?>
<?php $withUpvotes = $r['maxUpvotes'] > 0 && $r['stage'] !== 'vote'; ?>
<table>
<thead><tr><th class="num">#</th><th><?= __('Frage') ?></th><?php if ($withUpvotes) : ?><th class="num"><?= __('Upvotes') ?></th><?php endif; ?></tr></thead>
<tbody>