mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 21:33:41 -05:00
captcha support + remove row div
This commit is contained in:
parent
87aaca7ae3
commit
29379ca493
1 changed files with 9 additions and 3 deletions
|
@ -3,16 +3,22 @@
|
|||
{% set homeLink = 'active' %}
|
||||
{% block additionalHeadItems %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/toastify.css') }}">
|
||||
{% if cfg.antispam.type == 'recaptcha' %}
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
{% elif cfg.antispam.type == 'turnstile' %}
|
||||
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" defer></script>
|
||||
{% elif cfg.antispam.type == 'frc' %}
|
||||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.min.js" async defer></script>
|
||||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.compat.min.js" async defer></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div id="top-response-container"></div>
|
||||
<div id="top-response-container"></div>
|
||||
{% if cfg.style.homepageLayout == 'catask' %}
|
||||
{% include 'snippets/layout/homepage/normal.html' %}
|
||||
{% elif cfg.style.homepageLayout == 'retrospring' %}
|
||||
{% include 'snippets/layout/homepage/retrospring.html' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='js/toastify.min.js') }}"></script>
|
||||
|
|
Loading…
Add table
Reference in a new issue