Let scale slides hide the average or the distribution on stage

The average is now the headline of a scale result and the distribution a
compact detail below it. Two new settings (show_average, show_distribution)
hide either part in the presentation; evaluation and PDF stay complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 13:29:35 +01:00
1 parent 239599e6a3
commit bf16ac0d3b
8 files changed
+183 -15

No files matched your search

+3
View File
@@ -95,10 +95,13 @@ class Slide extends Entity
// comment_ratings: show the rating next to each comment in the presentation
// (time per comment depends on its length, see Comments.delay() in plenario.js)
// style: numbers or stars (SCALE_*), stars always start at scale_min = 1
// show_average / show_distribution: parts of the result shown in the presentation (presenter/embed);
// the evaluation in the admin area and the PDF export always contain both
self::TYPE_SCALE => [
'style' => self::SCALE_NUMBERS,
'scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => '', 'private' => false,
'comments' => false, 'comment_ratings' => false,
'show_average' => true, 'show_distribution' => true,
],
self::TYPE_CONTENT => [],
// time_limit in seconds, 0 = no limit (presenter ends the quiz)