Only load videojs when there are sources, and minor style tweaks

This commit is contained in:
2017-02-02 18:05:30 +01:00
parent b8ad0cd18f
commit 1e56ca5227
3 changed files with 18 additions and 13 deletions

View File

@@ -104,7 +104,9 @@ include _scripts
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.montage.min.js') }}")
script.
videojs(document.getElementById('videoplayer'), { fluid: true });
| {% if header_video_file %}
videojs(document.getElementById('videoplayer'), { fluid: true });
| {% endif %}
function montage(){
var $container = $('#featured-list'),