From ca900f7a8e363dbc832cb77149a980adcd225102 Mon Sep 17 00:00:00 2001 From: momothereal Date: Tue, 19 Jun 2018 14:53:49 -0400 Subject: Disable the join button if the user has already applied to a code jam --- templates/main/jams/index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/main/jams/index.html b/templates/main/jams/index.html index e2201398..8e6985c6 100644 --- a/templates/main/jams/index.html +++ b/templates/main/jams/index.html @@ -62,9 +62,15 @@ Code Jam {{ jam.number }}: {{ jam.title }} {% if jam.state == "announced" %} - -  Join - + {% if has_applied_to_jam(jam) %} + +  Applied + + {% else %} + +  Join + + {% endif %} {% else %}  Repository -- cgit v1.2.3