From 7dff98d8531020caa56ad613fd95cbf8b34871ae Mon Sep 17 00:00:00 2001 From: Skia Date: Sun, 20 Nov 2016 14:08:10 +0100 Subject: [PATCH] Small template improvements --- sas/templates/sas/album.jinja | 4 ++-- sas/templates/sas/picture.jinja | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 %}