From a27a916a1fcb9f62a9f075d1316346ff2e6424b2 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 6 Aug 2018 17:05:33 +0200 Subject: Add video list and video thumbnails Add a separate video page for listing uploaded videos. The thumbnail endpoint now supports generating video thumbnails using ffmpegthumbnailer. --- fbin/templates/base.html | 1 + fbin/templates/images.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'fbin/templates') diff --git a/fbin/templates/base.html b/fbin/templates/base.html index dfd6d06..beb1e17 100644 --- a/fbin/templates/base.html +++ b/fbin/templates/base.html @@ -28,6 +28,7 @@ {% if current_user.is_authenticated %} {{ nav_html('.files', 'Files') }} {{ nav_html('.images', 'Images') }} + {{ nav_html('.videos', 'Videos') }} {{ nav_html('.account', 'Account') }} {{ nav_html('.api', 'API') }} {{ nav_html('.logout', 'Logout') }} diff --git a/fbin/templates/images.html b/fbin/templates/images.html index c4bfd8f..e6c1ad0 100644 --- a/fbin/templates/images.html +++ b/fbin/templates/images.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %} -

You have {{ files|length() }} uploaded images totaling {{ total_size }}.

{% if files %} +

You have {{ files|length() }} uploaded {{ title|lower }} totaling {{ total_size }}.

{% for file in files %}
@@ -13,7 +13,7 @@ {% endfor %}
{% else %} -
(No image uploads yet.)
+
(No {{ title|lower }} uploaded yet.)
{% endif %} {% endblock %} {% block scripts %} -- cgit v1.2.3