quiz-6.0.0-alpha4/templates/quiz-result-score.html.twig

templates/quiz-result-score.html.twig
{#
/**
 * @file
 * Default theme implementation to display a quiz result score.
 *
 * Available variables:
 * - numeric_score: The numeric score for the quiz.
 * - percentage_score: The percentage score for the quiz.
 * - question_count: The total number of questions in the quiz.
 * - username: The user who took the quiz.
 * - your_total: The possessive pronoun if you took the quiz, or 'Total' if you're viewing someone else's quiz results.
 * - possible_attributes: HTML attributes for the possible score containing element.
 * - percent_attributes: HTML attributes for the possible score containing element.
 *
 * @see template_preprocess_quiz_result_score()
 *
 * @ingroup themeable
 */
#}
<div{{ possible_attributes }}>
    {{ ':username got :numeric_score of :question_count possible points.'|t({':username': username, ':numeric_score': numeric_score, ':question_count': question_count }) }}
</div>
<div{{ percent_attributes }}>
    {{ ':your_total score: :percentage_score%'|t({':username': username, ':your_total': your_total, ':percentage_score': percentage_score }) }}
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc