From 884b1a1aa5eaac47126a103e363accf1def31ee9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 31 Mar 2017 21:48:27 -0700 Subject: [PATCH] Make ?view param follow you to parent / children --- templates/album.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/album.html b/templates/album.html index 245ea18..2ebee75 100644 --- a/templates/album.html +++ b/templates/album.html @@ -27,8 +27,9 @@ p

{{album.title}}

{{album.description}}

{% set parent=album.parent() %} + {% set viewparam = "?view=list" if view == "list" else "" %} {% if parent %} -

Parent: {{parent.display_name}}

+

Parent: {{parent.display_name}}

{% else %}

Parent: Albums

{% endif %} @@ -37,7 +38,7 @@ p

Sub-albums