templates: inject turnslide js

This commit is contained in:
Zankaria 2024-07-27 19:58:58 +02:00
parent f3c45073cb
commit 4f61026842
3 changed files with 13 additions and 6 deletions

View file

@ -3,12 +3,15 @@
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<script type='text/javascript'>
var active_page = "catalog"
, board_name = "{{ board.uri }}"
, is_overboard = "{{ is_overboard }}";
</script>
{% if config.turnstile %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
{% endif %}
<title>{{ settings.title }} ( /{{ board.title|e }}/ )</title>
{% include 'header.html' %}
</head>
@ -28,7 +31,7 @@
<center>[ {% trans 'Create new thread' %} ]</center>
</summary>
<div style="margin: 1em 0;">
{% include('post_form.html', {form_action_type: 'post-thread'}) %}
{{ include('post_form.html', {form_action_type: 'post-thread'}) }}
</div>
</details>
{% endif %}