From: Jérémy Fabre Date: Wed, 21 Sep 2016 15:50:11 +0000 (+0200) Subject: Well... Display the description on the person block, and, display the bio if the... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a995ce28877b5227f4554b0173657a4712a9bb9e;p=mezzo.git Well... Display the description on the person block, and, display the bio if the description is not available --- diff --git a/app/templates/network/inc/person/list_circle_style.html b/app/templates/network/inc/person/list_circle_style.html index ee65dd92..24fa4cc4 100644 --- a/app/templates/network/inc/person/list_circle_style.html +++ b/app/templates/network/inc/person/list_circle_style.html @@ -54,10 +54,10 @@

{{ person }}

- {% if person.bio %} -
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
- {% elif person.description %} + {% if person.description %}
{{ person.description|richtext_filters|safe|truncatechars_html:255 }}
+ {% elif person.bio %} +
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
{% endif %} {% trans "resume" %} diff --git a/app/templates/network/inc/person/list_square_style.html b/app/templates/network/inc/person/list_square_style.html index 5dc8cf0c..363feac4 100644 --- a/app/templates/network/inc/person/list_square_style.html +++ b/app/templates/network/inc/person/list_square_style.html @@ -48,10 +48,10 @@

{{ person }}

- {% if person.bio %} -
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
- {% elif person.description %} + {% if person.description %}
{{ person.description|richtext_filters|safe|truncatechars_html:255 }}
+ {% elif person.bio %} +
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
{% endif %}