From 6e0072b9028bc7c878e3a74be66754fbbcb7d32c Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Thu, 22 Jun 2023 00:24:12 -0400 Subject: [PATCH] Squashed 'CTFd/themes/core-beta/' changes from 5ce3003b..bb4edfb6 bb4edfb6 Add description to TokensForm 50070166 Fix issue with missing endtrans tag 34c58129 Update README.md git-subtree-dir: CTFd/themes/core-beta git-subtree-split: bb4edfb6d4535406f7038099501d144d0cc998da --- README.md | 4 ++++ templates/settings.html | 9 +++++++++ templates/teams/public.html | 22 +++++++++++----------- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3fa13b9e..17c0d870 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ git subtree add --prefix CTFd/themes/core-beta git@github.com:CTFd/core-beta.git git subtree pull --prefix CTFd/themes/core-beta git@github.com:CTFd/core-beta.git main --squash ``` +### Subtree Gotcha + +Make sure to use Merge Commits when dealing with the subtree here. For some reason Github's squash and commit uses the wrong line ending which causes issues with the subtree script: https://stackoverflow.com/a/47190256. + ## Todo - Document how we are using Vite diff --git a/templates/settings.html b/templates/settings.html index d7ce93ba..3af06e0a 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -164,6 +164,11 @@ {{ form.expiration(class="form-control") }} +
+ {{ form.description.label(class="form-label") }} + {{ form.description(class="form-control", rows="3") }} +
+
{{ form.submit(class="btn btn-block btn-primary float-end px-4") }} @@ -218,6 +223,7 @@ {% trans %}Created{% endtrans %} {% trans %}Expiration{% endtrans %} + {% trans %}Description{% endtrans %} {% trans %}Delete{% endtrans %} @@ -230,6 +236,9 @@ + + {{ token.description | default('', true) }} + - {% trans %}User Name{% trans %} + {% trans %}User Name{% endtrans %} {% trans %}Score{% endtrans %} @@ -169,15 +169,15 @@
-
-
@@ -198,9 +198,9 @@