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'