Browse Source

Use galleria thumbnails for videos too

Also offer a big link for videos, if configured, not just for images
json loading means that static/img/empty.png is unnecessary.
pull/312/head
Edwin Steele 8 years ago
parent
commit
2f66532718
  1. BIN
      sigal/themes/galleria/static/img/empty.png
  2. 11
      sigal/themes/galleria/templates/index.html

BIN
sigal/themes/galleria/static/img/empty.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

11
sigal/themes/galleria/templates/index.html

@ -135,14 +135,15 @@ var data = [
{
title: "{{ media.title if media.title else media.filename }}",
description: "{{ img_description(media) | e }}",
thumb: "{{ media.thumbnail }}",
{% if media.big %}
big: "{{ media.big }}",
{% endif %}
{% if media.type == "image" %}
image: "{{ media.filename }}",
thumb: "{{ media.thumbnail }}"
{%- if media.big %},
big: "{{ media.big }}"{% endif %}
image: "{{ media.filename }}"
{% endif %}
{% if media.type == "video" %}
video: "{{ media.filename }}"
video: "{{ media.filename }}"
{% endif %}
},
{% endfor %}

Loading…
Cancel
Save