Commit bbf8d18d authored by Romain Loth's avatar Romain Loth

fix none in profile vcard and harmonize the test

parent 6f4f47b5
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
<span class="bigger"> <span class="bigger">
Welcome to your archived profile page, Welcome to your archived profile page,
<strong> <strong>
{% if return_user.info.hon_title is not none %} {{ return_user.info.hon_title or '' }}
{{ return_user.info.hon_title }}
{% endif %}
{{ return_user.info.last_name }} {{ return_user.info.last_name }}
</strong> ! </strong> !
</span> </span>
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
{% else %} {% else %}
Welcome to your profile page, Welcome to your profile page,
<strong> <strong>
{% if current_user.info.hon_title is not none %} {{ current_user.info.hon_title or '' }}
{{ current_user.info.hon_title }}
{% endif %}
{{ current_user.info.last_name }} {{ current_user.info.last_name }}
</strong> ! </strong> !
{% endif %} {% endif %}
...@@ -69,9 +67,9 @@ ...@@ -69,9 +67,9 @@
<img src="{{ (current_user.pic_src | safe) if current_user.pic_src else ''}}" class="our-vcard-img"> <img src="{{ (current_user.pic_src | safe) if current_user.pic_src else ''}}" class="our-vcard-img">
<ul> <ul>
<li class=bigger> <li class=bigger>
<b>{{ current_user.info.hon_title }} <b> {{ current_user.info.hon_title or '' }}
{{ current_user.info.first_name }} {{ current_user.info.first_name }}
<!-- TODO mid initials --> {{ current_user.info.middle_name or '' }}
{{ current_user.info.last_name }}</b> {{ current_user.info.last_name }}</b>
<br/> <br/>
<br/> <br/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment