summaryrefslogtreecommitdiff
path: root/fbin/templates
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2018-08-06 17:05:33 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2018-08-06 17:09:04 +0200
commita27a916a1fcb9f62a9f075d1316346ff2e6424b2 (patch)
tree178704da15f77d8c038160cf18d6b2876744c23b /fbin/templates
parente1e82a8c93b667ac9dd35a6dd34cb30e26545798 (diff)
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.
Diffstat (limited to 'fbin/templates')
-rw-r--r--fbin/templates/base.html1
-rw-r--r--fbin/templates/images.html4
2 files changed, 3 insertions, 2 deletions
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 %}
-<p>You have {{ files|length() }} uploaded images totaling {{ total_size }}.</p>
{% if files %}
+<p>You have {{ files|length() }} uploaded {{ title|lower }} totaling {{ total_size }}.</p>
<div class="row">
{% for file in files %}
<div class="image-thumbnail">
@@ -13,7 +13,7 @@
{% endfor %}
</div>
{% else %}
-<div><em>(No image uploads yet.)</em></div>
+<div><em>(No {{ title|lower }} uploaded yet.)</em></div>
{% endif %}
{% endblock %}
{% block scripts %}