From 4a27547345b8dd26cb2b784a91753f7743f60e2b Mon Sep 17 00:00:00 2001 From: Kenan Wright Date: Mon, 16 Sep 2024 10:15:43 +0000 Subject: [PATCH] Add logic for add/edit events based on if there are any --- hackathon/templates/hackathon/hackathon_view.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hackathon/templates/hackathon/hackathon_view.html b/hackathon/templates/hackathon/hackathon_view.html index 1cc0585b..41e1684b 100644 --- a/hackathon/templates/hackathon/hackathon_view.html +++ b/hackathon/templates/hackathon/hackathon_view.html @@ -57,7 +57,8 @@ Edit Hackathon - Change Events + + {% if hackathon.events.first %}Edit{% else %}Add{% endif %} Events View Hackathon Stats @@ -138,7 +139,6 @@

{{ hackathon.display_name }} #{{ hackathon.id }}

{% if hackathon.events.first %} - {{ hackathon.events.first }}