From 8ef09f8618c162fd83c396cf37421abb53965e1f Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 31 Oct 2020 23:03:37 -0500 Subject: [PATCH] update .gitignore for thumbnail files, add proper directory with icons to content, add proper thumbnail img loading with lazy loading for performance --- .gitignore | 1 + viewer/templates/browse.html | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 43660d2..9159069 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Repository specific .idea/** +viewer/static/thumbnails/** # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/viewer/templates/browse.html b/viewer/templates/browse.html index 384c2a6..296a96f 100644 --- a/viewer/templates/browse.html +++ b/viewer/templates/browse.html @@ -21,7 +21,7 @@ {{ files|length }} files - + @@ -32,15 +32,17 @@
{% for directory in directories %}
- + + + + {{ directory }}
{% endfor %} {% for file in files %}