1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 17:31:00 +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 inMod = {% if mod %}true{% else %}false{% endif %};
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : ""); var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
var max_images={{ config.max_images }}; var max_images={{ config.max_images }};
</script> {% raw %}
{% 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 %}
var styles = { var styles = {
{% endraw %} {% endraw %}
{% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}', {% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}',
{% endraw %}{% endfor %}{% 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 %} {% if not nojavascript %}
<script type="text/javascript" src="{{ config.url_javascript }}"></script> <script type="text/javascript" src="{{ config.url_javascript }}"></script>
{% if not config.additional_javascript_compile %} {% if not config.additional_javascript_compile %}

View File

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