From 5d67227bfee9b118fcd040badadd18f7740a3426 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Mon, 5 May 2025 15:33:48 +0200 Subject: [PATCH] Videjkaaa --- galerie/typy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/galerie/typy.py b/galerie/typy.py index 7b27dbc8..ae71a5f8 100644 --- a/galerie/typy.py +++ b/galerie/typy.py @@ -94,9 +94,13 @@ class Obrazek(ZobrazitelnyBazmek): class Video(ZobrazitelnyBazmek): def zobrazit(self, **kwargs): - return r'Takhle se jednou zobrazí videjko…' + attrs = format_html_join(' ', r'{}="{}"', ((mark_safe(k), v) for k, v in kwargs.items())) + # Atributy specifické pro video musíme vesměs vyřešit tady… (šlo by to {% if %}-ovat podle typu, ale to je spíš haluz. + html = format_html(r'