Mercurial > libervia-templates
comparison default/blog/item.html @ 112:988a1c0e8419
blog/item: fixed "expanded" parameter
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 26 Jan 2018 07:50:33 +0100 |
parents | 609c66552ba0 |
children |
comparison
equal
deleted
inserted
replaced
111:e1a0d5678837 | 112:988a1c0e8419 |
---|---|
12 {% if item.language and locale and locale.language != item.language %} | 12 {% if item.language and locale and locale.language != item.language %} |
13 {# we may display items in different language in a specific way #} | 13 {# we may display items in different language in a specific way #} |
14 {% set other_lang = " other_lang" %} | 14 {% set other_lang = " other_lang" %} |
15 {% endif %} | 15 {% endif %} |
16 | 16 |
17 <article id="{{item.id}}" class="init box{{other_lang}}{{" clicked" if expanded}}"> | 17 {% if expanded %} |
18 {# FIXME: the style attribute is not nice, but due to the use of clicked_mh_fix. A cleaner way would be welcomed #} | |
19 <article id="{{item.id}}" class="init box{{other_lang}} clicked" style="max-height: none"> | |
20 {% else %} | |
21 <article id="{{item.id}}" class="init box{{other_lang}}" > | |
22 {% endif %} | |
18 | 23 |
19 {# following message is displayed if item lang is different from page locale #} | 24 {# following message is displayed if item lang is different from page locale #} |
20 {% if other_lang is defined %} | 25 {% if other_lang is defined %} |
21 <div class="info"><p>{% trans language=locale.language_name %}This message is not in {{language}}, click to display anyway{% endtrans %}</p></div> | 26 <div class="info"><p>{% trans language=locale.language_name %}This message is not in {{language}}, click to display anyway{% endtrans %}</p></div> |
22 {% endif %} | 27 {% endif %} |