forked from GithubBackups/vichan
simplify template config for new_thread_capt and all captcha
This commit is contained in:
parent
8ccf506e0f
commit
50339812b6
@ -100,38 +100,22 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.captcha.provider == 'native' %}
|
{% if (config.captcha.provider == 'native' and not config.captcha.native.new_thread_capt) or
|
||||||
<tr class='captcha'>
|
(config.captcha.provider == 'native' and config.captcha.native.new_thread_capt and not id) %}
|
||||||
<th>
|
<tr class='captcha'>
|
||||||
{% trans %}Verification{% endtrans %}
|
<th>
|
||||||
</th>
|
{% trans %}Verification{% endtrans %}
|
||||||
<td>
|
</th>
|
||||||
<script>load_captcha("{{ config.captcha.native.provider_get }}", "{{ config.captcha.native.extra }}");</script>
|
<td>
|
||||||
<noscript>
|
<script>load_captcha("{{ config.captcha.native.provider_get }}");</script>
|
||||||
<input class='captcha_text' type='text' name='captcha_text' size='32' maxlength='6' autocomplete='off'>
|
<noscript>
|
||||||
<div class="captcha_html">
|
<input class='captcha_text' type='text' name='captcha_text' size='32' maxlength='6' autocomplete='off'>
|
||||||
<img src="/{{ config.captcha.native.provider_get }}?mode=get&raw=1">
|
<div class="captcha_html">
|
||||||
</div>
|
<img src="/{{ config.captcha.native.provider_get }}?mode=get&raw=1">
|
||||||
</noscript>
|
</div>
|
||||||
</td>
|
</noscript>
|
||||||
</tr>
|
</td>
|
||||||
{% elseif config.captcha.native.new_thread_capt %}
|
</tr>
|
||||||
{% if not id %}
|
|
||||||
<tr class='captcha'>
|
|
||||||
<th>
|
|
||||||
{% trans %}Verification{% endtrans %}
|
|
||||||
</th>
|
|
||||||
<td>
|
|
||||||
<script>load_captcha("{{ config.captcha.native.provider_get }}", "{{ config.captcha.native.extra }}");</script>
|
|
||||||
<noscript>
|
|
||||||
<input class='captcha_text' type='text' name='captcha_text' size='32' maxlength='6' autocomplete='off'>
|
|
||||||
<div class="captcha_html">
|
|
||||||
<img src="/{{ config.captcha.native.provider_get }}?mode=get&raw=1">
|
|
||||||
</div>
|
|
||||||
</noscript>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.user_flag %}
|
{% if config.user_flag %}
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user