From ca7391e21b047c2c7076d2e7a9c4bc96c93cec17 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Mon, 12 Apr 2021 00:06:26 +1000 Subject: [PATCH] fixed hard-coded static/storage, now use in_path.path_prefix --- templates/files.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/files.html b/templates/files.html index de5918e..e2d56bf 100644 --- a/templates/files.html +++ b/templates/files.html @@ -97,8 +97,12 @@ {% endif %} {% for obj in entry_data %} {% if loop.index==1 and folders %} - FIXME: hardcoded 'static/storage' - {% if cwd != 'static/storage' %} + {% if obj.type.name != "Directory" %} + {% set root=obj.in_dir.in_path.path_prefix %} + {% else %} + {% set root=obj.dir_details.in_path.path_prefix %} + {% endif %} + {% if cwd != root %}