fix error on macro renderPerson / withLink not taken into account

This commit is contained in:
Julien Fastré 2019-06-26 12:39:57 +02:00
parent 306654dee2
commit 5b60415166
2 changed files with 5 additions and 1 deletions

View File

@ -41,3 +41,7 @@ Version 1.5.6
- Update address validation
- Add command to move person and all data of a person to a new one, and delete the old one.
Branche master
==============
- fix error on macro renderPerson / withLink not taken into account

View File

@ -1 +1 @@
{% macro render(p, withLink=false) %}<span class="entity entity-person person-person"><a href="{{ path('chill_person_view', { 'person_id' : p.id } ) }}">{{ p.firstName }}&nbsp;{{ p.lastName }}</a></span>{% endmacro %}
{% macro render(p, withLink=true) %}<span class="entity entity-person person-person">{% if withLink %}<a href="{{ path('chill_person_view', { 'person_id' : p.id } ) }}">{% endif %}{{ p.firstName }}&nbsp;{{ p.lastName }}{% if withLink %}</a>{% endif %}</span>{% endmacro %}