1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 23:50:11 +01:00

Fix some templates

This commit is contained in:
Fredrick Brennan 2015-03-13 12:46:36 +08:00
parent 6186be4837
commit 83d74fdf69
2 changed files with 9 additions and 9 deletions

View File

@ -13,17 +13,17 @@
var inMod = {% if mod %}true{% else %}false{% endif %};
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
var max_images={{ config.max_images }};
</script>
{% if config.locale != "en" %}
<script type="text/javascript" src="{{ config.root }}inc/locale/{{ config.locale|split('.')[0] }}/LC_MESSAGES/javascript.js"></script>
{% endif %}
<script type="text/javascript">{% raw %}
{% raw %}
var styles = {
{% endraw %}
{% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}',
{% endraw %}{% endfor %}{% raw %}
};
{% endraw %}</script>
{% endraw %}
</script>
{% if config.locale != "en" %}
<script type="text/javascript" src="{{ config.root }}inc/locale/{{ config.locale|split('.')[0] }}/LC_MESSAGES/javascript.js"></script>
{% endif %}
{% if not nojavascript %}
<script type="text/javascript" src="{{ config.url_javascript }}"></script>
{% if not config.additional_javascript_compile %}

View File

@ -47,7 +47,7 @@
{% endif %}
<tr>
<th>
{% trans %}Comment <span class="required-star">*</span>{% endtrans %}
{% trans %}Comment{% endtrans %} <span class="required-star">*</span>
</th>
<td>
<textarea name="body" id="body" rows="5" cols="35"></textarea>
@ -61,7 +61,7 @@
{% if config.recaptcha %}
<tr>
<th>
{% trans %}Verification{% endtrans %}
{% trans %}Verification{% endtrans %} <span class="required-star">*</span>
</th>
<td>
<script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
@ -72,7 +72,7 @@
{% if config.captcha.enabled or (config.new_thread_capt and not id) %}
<tr class='captcha'>
<th>
{% trans %}Verification{% endtrans %}
{% trans %}Verification{% endtrans %} <span class="required-star">*</span>
</th>
<td>
<script>load_captcha("{{ config.captcha.provider_get }}", "{{ config.captcha.extra }}");</script>