From 5a4945ee242e8c491a60a77d660a807e823a2bd9 Mon Sep 17 00:00:00 2001 From: Or Ronai Date: Fri, 15 Oct 2021 15:22:34 +0300 Subject: [PATCH] fix: Filetree - fixed indentation - fixed blank icon --- lms/templates/filetree.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lms/templates/filetree.html b/lms/templates/filetree.html index f7c5877a..7e2704af 100644 --- a/lms/templates/filetree.html +++ b/lms/templates/filetree.html @@ -9,12 +9,16 @@ {% endif -%} - + {%- else -%} - fiv-viv fiv-icon-{{ file.path.rsplit('.')[-1] | e }}"> + {% if '.' in file.path %} + fiv-viv fiv-icon-{{ file.path.rsplit('.')[-1] | e }}"> + {% else %} + fiv-viv fiv-icon-blank"> + {% endif %} {%- endif -%} {% if not file.is_folder -%}