# HG changeset patch # User Goffi # Date 1598337935 -7200 # Node ID a50075db625c3e603ecfe974e9302d3d71df4673 # Parent 46eee98c19d88924cf8cfef167407237ab87c0f8 bulma (photo/item): show videos and their thumbnails diff -r 46eee98c19d8 -r a50075db625c sat_templates/templates/bulma/photo/item.html --- a/sat_templates/templates/bulma/photo/item.html Tue Aug 25 08:43:32 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Tue Aug 25 08:45:35 2020 +0200 @@ -1,9 +1,20 @@
- - {{file.name}} - + {% if file.mime_type[:5] == 'video' %} + + +
+ + + +
+
+ {% else %} + + {{file.name}} + + {% endif %}