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.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 151 B |
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user