display-download-and-link #81

Open
therbret wants to merge 3 commits from therbret/website:display-download-and-link into main
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 58bee83a81 - Show all commits

7
src/events/templates/events/ctf_info.html Normal file → Executable file
View File

@ -34,7 +34,8 @@
<span class="message error-msg">{% trans "This is a team event, please create or join a team before submitting flags." %}</span> <span class="message error-msg">{% trans "This is a team event, please create or join a team before submitting flags." %}</span>
{% if ctf.ctf_url %} {% if ctf.ctf_url %}
<a class="begin-ctf-link" target="_blank" href="{{ ctf.ctf_url }}">{% trans "Start the challenge" %}</a></br> <a class="begin-ctf-link" target="_blank" href="{{ ctf.ctf_url }}">{% trans "Start the challenge" %}</a></br>
{% elif ctf.file %} {% endif %}
{% if ctf.file %}
<a class="begin-ctf-link" target="_blank" href="{{ ctf.file.url }}">{% trans "Download" %}</a></br> <a class="begin-ctf-link" target="_blank" href="{{ ctf.file.url }}">{% trans "Download" %}</a></br>
{% endif %} {% endif %}
{% else %} {% else %}
@ -43,7 +44,8 @@
{% endif %} {% endif %}
{% if ctf.ctf_url %} {% if ctf.ctf_url %}
<a class="begin-ctf-link" target="_blank" href="{{ ctf.ctf_url }}">{% trans "Start the challenge" %}</a></br> <a class="begin-ctf-link" target="_blank" href="{{ ctf.ctf_url }}">{% trans "Start the challenge" %}</a></br>
{% elif ctf.file %} {% endif %}
{% if ctf.file %}
<a class="begin-ctf-link" target="_blank" href="{{ ctf.file.url }}">{% trans "Download" %}</a></br> <a class="begin-ctf-link" target="_blank" href="{{ ctf.file.url }}">{% trans "Download" %}</a></br>
{% endif %} {% endif %}
<form method="post" action="{% url 'events:submit_event_flag' event_slug=event.slug chall_slug=ctf.slug %}" class="submitflag-form"> <form method="post" action="{% url 'events:submit_event_flag' event_slug=event.slug chall_slug=ctf.slug %}" class="submitflag-form">
@ -51,7 +53,6 @@
<input type="text" name="flag" maxlength="100" required="" id="id_flag"> <input type="text" name="flag" maxlength="100" required="" id="id_flag">
<input class="form-control" type="submit" value=">"> <input class="form-control" type="submit" value=">">
</form> </form>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>