From cea96e6fe061988c4ecd963a265afb9b3b7876c3 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Thu, 25 Apr 2024 16:35:54 +0200 Subject: [PATCH] feat: back button from full thread page --- templates/threads.html | 21 ++++++++++++++++++++- threads.py | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/templates/threads.html b/templates/threads.html index 79d289f..5483bd1 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -23,6 +23,18 @@ } } + main .back { + padding:1em 0 0; + + & a { + text-decoration: none; + } + + & a::before { + content: '\25C0'; + } + } + ul { list-style: none; } @@ -102,15 +114,22 @@
- go home +

{{ app.title }}

{{ app.description }}

+ {% if threads|length == 1 and threads[0].descendants %} +
+ Back +
+ {% endif %} +