forked from leftypol/leftypol
Merge branch '23-fix-captcha' into 'config'
Tentative fix for #23 "captcha occasionally breaks" Closes #23 See merge request leftypol/leftypol!4
This commit is contained in:
commit
0cb602fd95
4 changed files with 5 additions and 32 deletions
|
@ -30,32 +30,4 @@
|
|||
{% endif %}
|
||||
{% if config.recaptcha %}
|
||||
<script src="//www.google.com/recaptcha/api.js"></script>
|
||||
<style type="text/css">{% raw %}
|
||||
#recaptcha_area {
|
||||
float: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
#recaptcha_logo, #recaptcha_privacy {
|
||||
display: none;
|
||||
}
|
||||
#recaptcha_table {
|
||||
border: none !important;
|
||||
}
|
||||
#recaptcha_table tr:first-child {
|
||||
height: auto;
|
||||
}
|
||||
.recaptchatable img {
|
||||
float: none !important;
|
||||
}
|
||||
#recaptcha_response_field {
|
||||
font-size: 10pt !important;
|
||||
border: 1px solid #a9a9a9 !important;
|
||||
padding: 1px !important;
|
||||
}
|
||||
td.recaptcha_image_cell {
|
||||
background: transparent !important;
|
||||
}
|
||||
.recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {
|
||||
padding: 0 !important;
|
||||
}
|
||||
{% endraw %}</style>{% endif %}
|
||||
{% endif %}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
active_page = "ukko";
|
||||
{% endif %}
|
||||
</script>
|
||||
{% include 'header.html' %}
|
||||
{{ include('captcha_script.html', { form_action_type: 'post_thread' }) }}
|
||||
|
||||
{% include 'header.html' %}
|
||||
{% set page_num %}{% for page in pages %}{% if page.selected %}{% if page.num != 1 %}{{ page.num }}{% endif %}{% endif %}{% endfor %}{% endset %}
|
||||
{% set meta_subject %}{{ board.subtitle|newline_to_full_stop|e }}{% endset %}
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
, board_name = "{{ board.uri }}"
|
||||
, is_overboard = "{{ is_overboard }}";
|
||||
</script>
|
||||
{{ include('captcha_script.html', { form_action_type: 'post_thread' }) }}
|
||||
<title>{{ settings.title }} ( /{{ board.title|e }}/ )</title>
|
||||
{% include 'header.html' %}
|
||||
{{ include('captcha_script.html', { form_action_type: 'post_thread' }) }}
|
||||
</head>
|
||||
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %} theme-catalog active-catalog" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
|
||||
<div id="top-hud" class="top bar topbar">
|
||||
|
|
|
@ -8,10 +8,11 @@
|
|||
, board_name = "{{ board.uri }}"
|
||||
, thread_id = "{{ thread.id }}";
|
||||
</script>
|
||||
{{ include('captcha_script.html', { form_action_type: 'post_reply' }) }}
|
||||
|
||||
{% include 'header.html' %}
|
||||
|
||||
{{ include('captcha_script.html', { form_action_type: 'post_reply' }) }}
|
||||
|
||||
{% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup|remove_modifiers|newline_to_full_stop|remove_markup|e[:256] }}{% endif %}{% endset %}
|
||||
|
||||
<meta name="description" content="{{ board.url }} - {{ board.title|e }} - {{ meta_subject }}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue