2i2c-org / unnamed-thingity-thing

https://2i2c.org/unnamed-thingity-thing/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add a django setting to specify state of the challenge #28

Closed yuvipanda closed 1 week ago

yuvipanda commented 3 weeks ago

The challenge can be in two states:

  1. NOT_STARTED
  2. RUNNING

When NOT_STARTED:

  1. Login is not available
  2. Leaderboard is not available

When RUNNING:

Everything is available

Eventually we will add a COMPLETED state, but that is a year out so we don't have to do it now.

- [ ] Add a new setting to represent the state of the challenge and call it `CHALLENGE_STATE`
- [ ] Update the `views` so that Login is not available and Leaderboard is not available when NOT_STARTED
- [ ] Pottentially also modify the html to conditionally display content

Definition of Done