Intro-to-Jinja-tpl-v2/templates/results.html

22 lines
409 B
HTML
Raw Normal View History

2024-02-12 16:39:27 +00:00
{# templates/results.html #}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Results</title>
</head>
<body>
<h1>{{ test_name }} ResultadOS: </h1>
<ul>
{% for student in students %}
2024-02-13 11:24:27 +00:00
<li>
{% if student.score > 80 %} :-) {% else %} :-( {% endif %}
2024-02-12 16:39:27 +00:00
<em>{{ student.name }}:</em> {{ student.score }}/{{ max_score }}
</li>
{% endfor %}
</ul>
</body>
</html>