From 3d058bce053920dafd05f53e0ce2bef5dcc5f309 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 22 Apr 2020 14:57:37 -0400 Subject: [PATCH] Switch to using outline button --- .../templates/challenges/challenges.html | 42 +++++++-- CTFd/themes/admin/templates/pages.html | 41 ++++++-- CTFd/themes/admin/templates/scoreboard.html | 4 +- CTFd/themes/admin/templates/submissions.html | 6 +- CTFd/themes/admin/templates/teams/teams.html | 82 +++++++++------- CTFd/themes/admin/templates/users/users.html | 93 +++++++++++-------- 6 files changed, 175 insertions(+), 93 deletions(-) diff --git a/CTFd/themes/admin/templates/challenges/challenges.html b/CTFd/themes/admin/templates/challenges/challenges.html index 66bb36a..baf6df3 100644 --- a/CTFd/themes/admin/templates/challenges/challenges.html +++ b/CTFd/themes/admin/templates/challenges/challenges.html @@ -18,28 +18,50 @@
+
+
+
+
+ +
+
+
+
+
- +
- - - - - - + + + + + + + {% for challenge in challenges %} - + + - - + +
IDNameCategoryValueTypeState +
+   +
+
IDNameCategoryValueTypeState
{{ challenge.id }} +
+   +
+
{{ challenge.id }} {{ challenge.name }} {{ challenge.category }}{{ challenge.value }}{{ challenge.type }}{{ challenge.value }}{{ challenge.type }} {% set badge_state = 'badge-danger' if challenge.state == 'hidden' else 'badge-success' %} {{ challenge.state }} diff --git a/CTFd/themes/admin/templates/pages.html b/CTFd/themes/admin/templates/pages.html index 2562ab9..87a0e7c 100644 --- a/CTFd/themes/admin/templates/pages.html +++ b/CTFd/themes/admin/templates/pages.html @@ -19,20 +19,41 @@
- +
+
+ +
+
+ + +
+
+
- - - - - - + + + + + + + {% for page in pages %} - + + @@ -60,7 +81,7 @@ Published {% endif %} - {% endfor %} diff --git a/CTFd/themes/admin/templates/scoreboard.html b/CTFd/themes/admin/templates/scoreboard.html index 3a528c9..80fb24d 100644 --- a/CTFd/themes/admin/templates/scoreboard.html +++ b/CTFd/themes/admin/templates/scoreboard.html @@ -11,10 +11,10 @@
- -
diff --git a/CTFd/themes/admin/templates/submissions.html b/CTFd/themes/admin/templates/submissions.html index f15aeb3..d92fd4c 100644 --- a/CTFd/themes/admin/templates/submissions.html +++ b/CTFd/themes/admin/templates/submissions.html @@ -16,7 +16,7 @@
-
@@ -56,7 +56,9 @@ {{ sub.team_name }}
TitleRouteAuthenticationHiddenPublishedSettings +
+   +
+
TitleRouteAuthenticationHiddenPublished
+
+   +
+
{{ page.title }} +
- {{ sub.challenge_name }} + + {{ sub.challenge_name }} + {{ sub.type }} diff --git a/CTFd/themes/admin/templates/teams/teams.html b/CTFd/themes/admin/templates/teams/teams.html index d29f5c9..6fc5d02 100644 --- a/CTFd/themes/admin/templates/teams/teams.html +++ b/CTFd/themes/admin/templates/teams/teams.html @@ -24,48 +24,68 @@ {% endif %}
-
- - -
-
- - -
-
- - -
+
+ + +
+
+ + +
+
+ + +
+ + -
+
- +
+
+
+
+ +
+
+
+
+ +
+
+
- - - - - - + + + + + + {% for team in teams %} - + +
ID - Team - Website - Country - Hidden - Banned + +
+   +
IDTeamWebsiteCountryHiddenBanned
{{ team.id }} +
+   +
+
{{ team.id }} {{ team.name | truncate(32) }} diff --git a/CTFd/themes/admin/templates/users/users.html b/CTFd/themes/admin/templates/users/users.html index 3de7ca9..ac96e6e 100644 --- a/CTFd/themes/admin/templates/users/users.html +++ b/CTFd/themes/admin/templates/users/users.html @@ -17,6 +17,7 @@
+
{% if q and field %} @@ -24,55 +25,71 @@ {% endif %}
-
- - -
-
- - -
-
- - -
+
+ + +
+
+ + +
+
+ + +
+
+
-
+
- +
+
+
+
+ +
+
+
+
+
+
+
- - - - - - - - - + + + + + + + + {% for user in users %} - + +
ID - User - Email - Website - Country - Admin - Verified - Hidden - Banned + +
+   +
ID + UserEmailWebsiteCountryAdminVerifiedHiddenBanned
{{ user.id }} +
+   +
+
{{ user.id }} {{ user.name | truncate(32) }}