fix error on macro renderPerson / withLink not taken into account

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

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 %}