diff --git a/sas/templates/sas/album.jinja b/sas/templates/sas/album.jinja index 45ceb9ae..13478400 100644 --- a/sas/templates/sas/album.jinja +++ b/sas/templates/sas/album.jinja @@ -5,7 +5,7 @@ {% endblock %} {% macro print_path(file) %} -{% if file %} +{% if file and file.parent %} {{ print_path(file.parent) }} {{ file.get_display_name() }} > {% endif %} @@ -13,7 +13,7 @@ {% block content %} -{{ print_path(album.parent) }} {{ album.get_display_name() }} +SAS > {{ print_path(album.parent) }} {{ album.get_display_name() }}

{{ album.get_display_name() }}

{% for a in album.children.filter(is_folder=True, is_moderated=True).all() %} diff --git a/sas/templates/sas/picture.jinja b/sas/templates/sas/picture.jinja index dc17a829..ba86a0b3 100644 --- a/sas/templates/sas/picture.jinja +++ b/sas/templates/sas/picture.jinja @@ -25,14 +25,14 @@ {% endblock %} {% macro print_path(file) %} -{% if file %} +{% if file and file.parent %} {{ print_path(file.parent) }} {{ file.get_display_name() }} > {% endif %} {% endmacro %} {% block content %} -{{ print_path(picture.parent) }} {{ picture.get_display_name() }} +SAS > {{ print_path(picture.parent) }} {{ picture.get_display_name() }}

{{ picture.get_display_name() }}

{% if is_vertical %}