From 9bc9f29fc8ff411354a8facc4805e8acc17bd568 Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 12 Jan 2025 00:24:29 -0600 Subject: [PATCH] complicate parks more --- scrapple/templates/park_detail.html | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/scrapple/templates/park_detail.html b/scrapple/templates/park_detail.html index f81d8cf..927211b 100644 --- a/scrapple/templates/park_detail.html +++ b/scrapple/templates/park_detail.html @@ -8,6 +8,7 @@
+ {# sometimes phone block is present #} {% if park.id % 7 == 0 %} Phone @@ -28,17 +29,8 @@
- {# sometimes add another block in, we'll use the id to decide #} - {% if park.id % 17 == 0 %} -
-

-

Reserved

-
- This section is reserved for future use. -
-
- {% endif %} - + {# divisors of 11, description comes first #} + {% if park.id % 11 == 0 %}

Description

@@ -58,6 +50,19 @@ This section is reserved for future use.
+ + {# usually this block is down here #} + {% if park.id % 11 != 0 %} +
+

+

Description

+
+ {% autoescape false %} + {{ park.description|replace("\n","
") }} + {% endautoescape %} +
+
+ {% endif %} {# optional #} @@ -74,7 +79,7 @@ {% endif %} {# sometimes add another block in, we'll use the id to decide #} - {% if park.id % 11 == 0 %} + {% if park.id % 15 == 0 %}

Other