Path in the DB is complete, still have hacks around displaying folders (hardcoded path name)
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
<div style="position:relative; width:100%">
|
||||
{% if obj.type.name=="Image" %}
|
||||
{% set icon="fa-file-image" %}
|
||||
<a href="{{obj.in_dir.path_prefix}}/{{obj.name}}">
|
||||
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}">
|
||||
{% elif obj.type.name == "Video" %}
|
||||
{% set icon="fa-film" %}
|
||||
<a href="{{obj.in_dir.path_prefix}}/{{obj.name}}">
|
||||
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}">
|
||||
{% elif obj.type.name == "Directory" %}
|
||||
{% set icon="fa-folder" %}
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user