]> git.parisson.com Git - mezzo.git/commitdiff
Well... Display the description on the person block, and, display the bio if the...
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 21 Sep 2016 15:50:11 +0000 (17:50 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 21 Sep 2016 15:50:11 +0000 (17:50 +0200)
app/templates/network/inc/person/list_circle_style.html
app/templates/network/inc/person/list_square_style.html

index ee65dd921c0764681afbbfa5e274d5698be9f994..24fa4cc48a524b2f71d7e3fff6ccfb93f4acbc68 100644 (file)
 
                                         <h3 class="mt0 fsxl">{{ person }}</h3>
 
-                                        {% if person.bio %}
-                                            <div class="person-list-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}</div>
-                                        {% elif person.description %}
+                                        {% if person.description %}
                                             <div class="person-list-box__desc">{{ person.description|richtext_filters|safe|truncatechars_html:255 }}</div>
+                                        {% elif person.bio %}
+                                            <div class="person-list-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}</div>
                                         {% endif %}
 
                                         <a href="{{ person.get_absolute_url }}" class="button button--small button--white">{% trans "resume" %}</a>
index 5dc8cf0ce75b75be06f40626e1d12df6e82ea2e9..363feac4eb13f2f033ae0a03fea2d168b67f4d9f 100644 (file)
 
                                         <a href="{{ person.get_absolute_url }}" title="{{ person }}"><h3 class="article-box__title">{{ person }}</h3></a>
 
-                                        {% if person.bio %}
-                                            <div class="article-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}</div>
-                                        {% elif person.description %}
+                                        {% if person.description %}
                                             <div class="article-box__desc">{{ person.description|richtext_filters|safe|truncatechars_html:255 }}</div>
+                                        {% elif person.bio %}
+                                            <div class="article-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}</div>
                                         {% endif %}
 
                                     </div>