}> $sections * @var bool $includeInternal * @var bool $hasInternal Poll has private slides * @var \Cake\I18n\DateTime $exportedAt */ $this->assign('title', $poll->title); $number = fn(float $value, int $places = 0) => $this->Number->format($value, [ 'places' => $places, 'precision' => max(1, $places), 'locale' => 'de_DE', ]); $bar = function (float $percent, bool $ok = false): string { $width = max(0, min(100, $percent)); if ($width <= 0) { // An empty fill would still be drawn as a hairline. return '
'; } return '= __('Ergebnisse') ?>
= __n('{0} Folie mit Abstimmung', '{0} Folien mit Abstimmung', count($sections), count($sections)) ?> · = __('Stand: {0}', $exportedAt->i18nFormat('dd.MM.yyyy')) ?>
= __('Diese Umfrage hat noch keine Folien mit Abstimmung.') ?>
type === 'scale'; // Short sections stay on one page, long lists may break across pages. $long = count($r['answers'] ?? []) > 8 || count($r['words'] ?? []) > 15 || count($r['questions'] ?? []) > 10 || count($r['comments'] ?? []) > 5; ?>= __('Folie {0}', $section['number']) ?> · = h($slide->typeLabel()) ?> · = $isScale ? __('Internes Feedback') : __('Anonymes Feedback') ?>
= __n('{0} Person hat teilgenommen', '{0} Personen haben teilgenommen', $participants, $participants) ?>
= $isScale ? __('Verteilung, Durchschnitt und Kommentare sind in dieser Fassung nicht enthalten.') : __('Die Antworten sind in dieser Fassung nicht enthalten.') ?>
= __('Keine Antworten.') ?>
type === 'choice') : ?>| = __('Antwort') ?> | = __('Stimmen') ?> | = __('Anteil') ?> | |
|---|---|---|---|
| = h($option['label']) ?> | = (int)$option['count'] ?> | = $number((float)$option['percent']) ?> % | = $bar((float)$option['percent']) ?> |
= __('Keine Kommentare.') ?>
= __('Das Quiz wurde nicht beendet, daher gibt es keine Auswertung.') ?>
= __('{0} von {1}', (int)$r['correctCount'], $participants) ?> = __('richtig beantwortet') ?>
| = __('Antwort') ?> | = __('Stimmen') ?> | = __('Anteil') ?> | |
|---|---|---|---|
| >= $option['correct'] ? '✓ ' : '' ?>= h($option['label']) ?> | = (int)$option['count'] ?> | = $number((float)$option['percent']) ?> % | = $bar((float)$option['percent'], $option['correct']) ?> |
= __('Die Abstimmung ist noch offen, die Auflösung gibt es erst nach dem Schließen.') ?>
= __('{0} von {1}', (int)$r['correctCount'], $participants) ?> = __('komplett richtig sortiert') ?>
| = __('Platz') ?> | = __('Eintrag') ?> | = __('richtig platziert') ?> | |
|---|---|---|---|
| = (int)$item['position'] ?>. | = h($item['label']) ?> | = (int)$item['placed'] ?> (= $number((float)$item['percent']) ?> %) | = $bar((float)$item['percent'], true) ?> |
| = __('Begriff') ?> | = __('Nennungen') ?> | = __('Downvotes') ?> |
|---|---|---|
| = h($word['text']) ?> | = (int)$word['count'] ?> | = (int)$word['down'] ?> |
= __('Durchschnitt') ?>: = $r['average'] === null ? '–' : $number((float)$r['average'], 1) ?> = !empty($r['stars']) ? __('von {0} Sternen', (int)$r['max']) : __('auf einer Skala von {0} bis {1}', (int)$r['min'], (int)$r['max']) ?>
| = !empty($r['stars']) ? __('Sterne') : __('Wert') ?> | = __('Anzahl') ?> | = __('Anteil') ?> | |
|---|---|---|---|
| >= h($slide->ratingText((int)$bucket['value'])) ?> (= h($label) ?>) | = (int)$bucket['count'] ?> | = $number((float)$bucket['percent']) ?> % | = $bar((float)$bucket['percent']) ?> |
= __('Keine Kommentare.') ?>
= __('Keine Fragen eingereicht.') ?>
0 && $r['stage'] !== 'vote'; ?>| # | = __('Frage') ?> | = __('Upvotes') ?> |
|---|---|---|
| = $i + 1 ?>. | = nl2br(h($question['text'])) ?> | = (int)$question['votes'] ?> |