comparison default/blog/item.html @ 36:baa0942d6b45

blog/item: fixed other_lang detection
author Goffi <goffi@goffi.org>
date Tue, 04 Jul 2017 07:54:32 +0200
parents 5fd910d48192
children 0c6aa1c81252
comparison
equal deleted inserted replaced
35:581e2cd4bcc2 36:baa0942d6b45
1 {% block item %} 1 {% block item %}
2 2
3 {% if item.language and locale and locale != item.language %} 3 {% if item.language and locale and locale.language != item.language %}
4 {# we may display items in different language in a specific way #} 4 {# we may display items in different language in a specific way #}
5 {% set other_lang = " other_lang" %} 5 {% set other_lang = " other_lang" %}
6 {% endif %} 6 {% endif %}
7 7
8 <article id="{{ item.id }}" class="init box{{other_lang}}" onclick="clicked_cls(this)"> 8 <article id="{{ item.id }}" class="init box{{other_lang}}" onclick="clicked_cls(this)">