From 50339812b6c49bec329e35bf31c78e004a9c7629 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:52:10 -0300 Subject: [PATCH] simplify template config for new_thread_capt and all captcha --- templates/post_form.html | 48 ++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/templates/post_form.html b/templates/post_form.html index b0377e03..1095b4ae 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -100,38 +100,22 @@ {% endif %} - {% if config.captcha.provider == 'native' %} - - - {% trans %}Verification{% endtrans %} - - - - - - - {% elseif config.captcha.native.new_thread_capt %} - {% if not id %} - - - {% trans %}Verification{% endtrans %} - - - - - - - {% endif %} + {% if (config.captcha.provider == 'native' and not config.captcha.native.new_thread_capt) or + (config.captcha.provider == 'native' and config.captcha.native.new_thread_capt and not id) %} + + + {% trans %}Verification{% endtrans %} + + + + + + {% endif %} {% if config.user_flag %}