From 46fc90ddeb5f84a32c66e9be791158a211645392 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 6 Jun 2021 17:23:23 +1000 Subject: [PATCH] if via folders or grouping is none we create the row of images. if we are searching, added mini icon in bottom-left to show where the image is from (import/storage/bin) --- templates/files.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/files.html b/templates/files.html index 406bdd3..31d27bb 100644 --- a/templates/files.html +++ b/templates/files.html @@ -108,7 +108,7 @@ {% set last = namespace(printed=0) %} - {% if grouping == "None" %} + {% if folders or grouping == "None" %}
{% endif %} {% for obj in entry_data %} @@ -158,13 +158,25 @@ {% if (not folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(cwd)) %}
{% if obj.type.name=="Image" %} - +
+ + {% if search_term is defined %} +
+ +
+ {% endif %} +
{% elif obj.type.name == "Video" %}
+ {% if search_term is defined %} +
+ +
+ {% endif %}
{% endif %} {# finding text distracting,
{{obj.name}}
#}