Mercurial > libervia-templates
changeset 112:988a1c0e8419
blog/item: fixed "expanded" parameter
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 26 Jan 2018 07:50:33 +0100 |
parents | e1a0d5678837 |
children | e96a3e09d4e9 |
files | default/blog/item.html |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/default/blog/item.html Wed Jan 24 20:24:09 2018 +0100 +++ b/default/blog/item.html Fri Jan 26 07:50:33 2018 +0100 @@ -14,7 +14,12 @@ {% set other_lang = " other_lang" %} {% endif %} -<article id="{{item.id}}" class="init box{{other_lang}}{{" clicked" if expanded}}"> +{% if expanded %} + {# FIXME: the style attribute is not nice, but due to the use of clicked_mh_fix. A cleaner way would be welcomed #} + <article id="{{item.id}}" class="init box{{other_lang}} clicked" style="max-height: none"> +{% else %} + <article id="{{item.id}}" class="init box{{other_lang}}" > +{% endif %} {# following message is displayed if item lang is different from page locale #} {% if other_lang is defined %}