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 -%}