From fb10ca1464f856c7d7a7e19bbc29540faf40ef1a Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 8 Sep 2024 04:08:38 +0200 Subject: [PATCH] feat(meta): webinterface is now kinda useful and fancy --- data/www/admin/index.html | 73 +++------------------------------- data/www/details.html | 26 +++--------- data/www/index.html | 83 +++++---------------------------------- src/challenge/mod.rs | 3 +- src/meta/admin.rs | 24 +++++++++-- src/meta/user.rs | 24 +++++++++-- 6 files changed, 65 insertions(+), 168 deletions(-) diff --git a/data/www/admin/index.html b/data/www/admin/index.html index 5292743..534b920 100644 --- a/data/www/admin/index.html +++ b/data/www/admin/index.html @@ -122,89 +122,26 @@
-
-

Challenge {{ challenge_idx}} — {{ challenge_title }}

-

{{ challenge_description }}

-
-

Hints

- -
-
    - {% for hint in challenge_hints %} -
  • -

    - - - - {{hint}} -

    -
  • - {% endfor %} -
-
-
-
-

Solution

- -
-

- - - - {{challenge_solution}} -

-
-
-
- -
-
-

Contestants

+

Challenges

- There are cuttently {{ contestants_amount }} contestants. - These contestants currently have had at least one connection to - the challenge: + There are cuttently {{ challenges_amount }} active challenges.

-
-

Winners

-

- There are cuttently {{ winners_amount }} winners. These contestants currently have been sent the secret: -

- -