From cc04e10e5f29ddca866b55d4a7be997302fe4b01 Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Sun, 4 Aug 2024 18:01:21 -0700 Subject: [PATCH] Only display "Photos" on album if we showed sub-albums --- photojawn/skel/_templates/album.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photojawn/skel/_templates/album.html b/photojawn/skel/_templates/album.html index 5dfcf91..6999764 100644 --- a/photojawn/skel/_templates/album.html +++ b/photojawn/skel/_templates/album.html @@ -35,9 +35,10 @@ {% endfor %} {% endif %} - {% if album_dir.images %} + {% if album_dir.children %}

Photos

+ {% endif %}
{% for image in album_dir.images %}