{% extends "base.html" %} {% block title %}Główna{% endblock %} {% block content %}

Najtrudniejsze testy:

{% for test in tests %}
{{test.name}} {% if test.password != "" %} {% endif %}
Kategoria: {{test.category}}
Autor: {{test.get_author_name}}
Rozwiązania: {{test.completions}}
Próg zaliczenia: {{test.passing_score}}
Maksymalna ilość punktów: {{test.get_maxscore}}
Ilość pytań: {{test.question_count}}
Trudność: {% if test.difficulty_label == 0 %} {% elif test.difficulty_label == 1 %} > > > > {% elif test.difficulty_label == 2 %} {% elif test.difficulty_label == 3 %} {% elif test.difficulty_label == 4 %} {% else %} {% endif %}
Ocena: {% if test.avg_rating == 0 %} {% elif test.avg_rating == 1 %} {% elif test.avg_rating == 2 %} {% elif test.avg_rating == 3 %} {% elif test.avg_rating == 4 %} {% else %} {% endif %} (Głosy: {{test.rates_amount}})

{% endfor %} {% endblock %}