diff --git a/videodinges/templates/video.html.j2 b/videodinges/templates/video.html.j2 index 4bd7555..79b0330 100644 --- a/videodinges/templates/video.html.j2 +++ b/videodinges/templates/video.html.j2 @@ -16,7 +16,12 @@

{% for quality in qualities %} -{{ quality }} versie{% if not loop.last %} | {% endif %} + {% if quality == current_quality %} + {{ quality }} versie + {% else %} + {{ quality }} versie + {% endif %} + {% if not loop.last %}|{% endif %} {% endfor %}

diff --git a/videodinges/views.py b/videodinges/views.py index 0945f7f..a5e17ef 100644 --- a/videodinges/views.py +++ b/videodinges/views.py @@ -28,6 +28,7 @@ def video(request: HttpRequest, slug: str) -> HttpResponse: template_data.update( width=quality[0].quality_obj.width, height=quality[0].quality_obj.height, + current_quality=quality[0].quality_obj.name ) template_data['sources'] = [