From 2364181805c61030ea3e91b334f483f71caa471b Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 12 Feb 2024 09:27:22 +0100 Subject: [PATCH 1/3] Fix bad closing tag on series page --- pyvocz/templates/series.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvocz/templates/series.html b/pyvocz/templates/series.html index 2aa1dc3..f3ababa 100644 --- a/pyvocz/templates/series.html +++ b/pyvocz/templates/series.html @@ -51,7 +51,7 @@

{{ self.title() }}

přidat informace o dalším srazu. - + {% if year==None %} From d4b7e653c891a224e81bc9a9b3d0be1a6dfcf6ea Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 12 Feb 2024 09:30:04 +0100 Subject: [PATCH 2/3] Fix: Show past events for "rebooted" series If there were no recent enough past events, the series page didn't show any history at all. In that case: - show last 5 past events (if there aren't any, things will work as before) - Hide the "New" link in pagination. (Not ideal, but it should only last a month or so :) --- pyvocz/templates/series.html | 14 +++++++++++--- pyvocz/views.py | 28 +++++++++++++++++++--------- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/pyvocz/templates/series.html b/pyvocz/templates/series.html index f3ababa..a7d929d 100644 --- a/pyvocz/templates/series.html +++ b/pyvocz/templates/series.html @@ -139,9 +139,17 @@

{{ tr('Historie srazů', 'Meetup History') }}

< - + {% if new_history %} + + {% endif %} {% for page in all_years|reverse %}