From 1274364953b6a44647d52a407deeae9c74a9083b Mon Sep 17 00:00:00 2001 From: therbret Date: Tue, 4 Oct 2022 00:11:35 +0200 Subject: [PATCH 1/2] Allow displaying a link and a download for challenges --- src/ctfs/templates/ctfs/ctf_info.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/ctfs/templates/ctfs/ctf_info.html diff --git a/src/ctfs/templates/ctfs/ctf_info.html b/src/ctfs/templates/ctfs/ctf_info.html old mode 100644 new mode 100755 index 18eca46..6906ea5 --- a/src/ctfs/templates/ctfs/ctf_info.html +++ b/src/ctfs/templates/ctfs/ctf_info.html @@ -31,7 +31,8 @@

{% trans "Already flagged" %}

{% if ctf.ctf_url %} {% trans "Start the challenge" %}
- {% elif ctf.file %} + {% endif %} + {% if ctf.file %} {% trans "Download" %}
{% endif %} {% else %} @@ -40,7 +41,8 @@ {% endif %} {% if ctf.ctf_url %} {% trans "Start the challenge" %}
- {% elif ctf.file %} + {% endif %} + {% if ctf.file %} {% trans "Download" %}
{% endif %}
@@ -48,7 +50,6 @@
- {% endif %} {% endif %} -- 2.40.1 From 58bee83a81abfc40201fe4f3f575743f92b57e70 Mon Sep 17 00:00:00 2001 From: therbret Date: Tue, 4 Oct 2022 00:19:19 +0200 Subject: [PATCH 2/2] Allow displaying a link and a download for event challenges --- src/events/templates/events/ctf_info.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/events/templates/events/ctf_info.html diff --git a/src/events/templates/events/ctf_info.html b/src/events/templates/events/ctf_info.html old mode 100644 new mode 100755 index aca18ef..9dbc80a --- a/src/events/templates/events/ctf_info.html +++ b/src/events/templates/events/ctf_info.html @@ -34,7 +34,8 @@ {% trans "This is a team event, please create or join a team before submitting flags." %} {% if ctf.ctf_url %} {% trans "Start the challenge" %}
- {% elif ctf.file %} + {% endif %} + {% if ctf.file %} {% trans "Download" %}
{% endif %} {% else %} @@ -43,7 +44,8 @@ {% endif %} {% if ctf.ctf_url %} {% trans "Start the challenge" %}
- {% elif ctf.file %} + {% endif %} + {% if ctf.file %} {% trans "Download" %}
{% endif %}
@@ -51,7 +53,6 @@
- {% endif %} {% endif %} -- 2.40.1