diff --git a/app/tpl/print/macros.html.twig b/app/tpl/print/macros.html.twig index 1d189c7..ba6cfe1 100644 --- a/app/tpl/print/macros.html.twig +++ b/app/tpl/print/macros.html.twig @@ -19,6 +19,14 @@ {% endfor %} {% endmacro %} +{% macro list_projects(projects, tag) %} + {% set tag = tag|default('li') %} + {% for project in projects %} + <{{ tag }}>{{ project.name }}: + {{ project.shortDescription }}{{ tag }}> + {% endfor %} +{% endmacro %} + {% macro list_link_array(entries, tag) %} {% set tag = tag|default('li') %} diff --git a/app/tpl/print/parts/resume.html.twig b/app/tpl/print/parts/resume.html.twig index 9a5993e..c82f688 100644 --- a/app/tpl/print/parts/resume.html.twig +++ b/app/tpl/print/parts/resume.html.twig @@ -115,11 +115,11 @@ {{ macros.list_references(person.references) }} {% endif %} - - {% if person.projects|length > 0 %} + + {% if projects|length > 0 %}