if ($tries_left > 0 && !$show_solution): ?>
= MessageBox::warning(sprintf(ngettext(
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weiteren Versuch.',
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weitere Versuche.', $tries_left), $tries_left)) ?>
endif ?>
= htmlReady($exercise->title) ?>
if ($max_points == (int) $max_points): ?>
= sprintf(ngettext('%d Punkt', '%d Punkte', $max_points), $max_points) ?>
else: ?>
= sprintf(_('%g Punkte'), $max_points) ?>
endif ?>
= formatReady($exercise->description) ?>
= $this->render_partial('vips/exercises/show_exercise_hint') ?>
= $this->render_partial('vips/exercises/show_exercise_files') ?>
if ($show_solution): ?>
= $this->render_partial($exercise->getCorrectionTemplate($solution), ['show_solution' => $sample_solution]) ?>
if ($exercise->options['comment'] && $solution->student_comment != ''): ?>
= _('Bemerkungen zur Lösung') ?>
= htmlReady($solution->student_comment, true, true) ?>
endif ?>
if ($solution->feedback != ''): ?>
= _('Anmerkungen zur Lösung') ?>
= formatReady($solution->feedback) ?>
endif ?>
= sprintf(_('Erreichte Punkte: %g von %g'), $solution->points, $max_points) ?>
else: ?>
= $this->render_partial($exercise->getSolveTemplate($solution, $assignment, $user_id)) ?>
if (!empty($exercise->options['comment'])): ?>
= _('Bemerkungen zur Lösung (optional)') ?>
endif ?>
endif ?>