From e58dba6a4c8245ba527e39cb9371ac558509880a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 4 Jul 2024 02:34:15 +0200 Subject: [PATCH] Add description to index page --- core/templates/index.html | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/core/templates/index.html b/core/templates/index.html index fdf3fae..445f5b4 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -22,10 +22,26 @@ {% for campaign in game.campaigns %}
-

- {{ campaign.name }} -

Ends in: {{ campaign.end_at|timeuntil }}

-

+

{{ campaign.name }}

+

Ends in: {{ campaign.end_at|timeuntil }}

+ {% if campaign.description != campaign.name %} + {% if campaign.description|length|get_digit:"-1" > 100 %} +

+ +

+
+
{{ campaign.description }}
+
+
+ {% else %} +

{{ campaign.description }}

+ {% endif %} + {% endif %} {% for drop in campaign.drops %}