add macro for person entity rendering easily

This commit is contained in:
Julien Fastré 2016-02-22 17:46:32 +01:00
parent 760ec27d70
commit 230945c322

View File

@ -0,0 +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 %}