fixed hard-coded static/storage, now use in_path.path_prefix
This commit is contained in:
@@ -97,8 +97,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for obj in entry_data %}
|
{% for obj in entry_data %}
|
||||||
{% if loop.index==1 and folders %}
|
{% if loop.index==1 and folders %}
|
||||||
FIXME: hardcoded 'static/storage'
|
{% if obj.type.name != "Directory" %}
|
||||||
{% if cwd != 'static/storage' %}
|
{% set root=obj.in_dir.in_path.path_prefix %}
|
||||||
|
{% else %}
|
||||||
|
{% set root=obj.dir_details.in_path.path_prefix %}
|
||||||
|
{% endif %}
|
||||||
|
{% if cwd != root %}
|
||||||
<figure class="px-1 dir" dir={{cwd|ParentPath}}>
|
<figure class="px-1 dir" dir={{cwd|ParentPath}}>
|
||||||
<span style="font-size:{{(size|int-22)/2}}" class="fa-stack">
|
<span style="font-size:{{(size|int-22)/2}}" class="fa-stack">
|
||||||
<i style="color:grey" class="fas fa-folder fa-stack-2x"></i>
|
<i style="color:grey" class="fas fa-folder fa-stack-2x"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user