{% macro print_articles(articles, list_short = False) %}
{% if article.category.name == "talks-posters" %}
{{ article.date|strftime(DATE_HACK_FORMATS[DEFAULT_LANG]["full"]) }}
{{ article.title }}
{% if article.poster %}
poster
{% else %}
talk
{% endif %}
{% if not list_short %}
{{ article.location }} -- {% if article.conference_url %}{{ article.conference_name }}{% else %}{{ article.conference_name }}{% endif %}
{% endif %}
{% endif %}
{% if article.category.name == "conferences" %}
{{ article.conference_date_start|strftime(DATE_HACK_FORMATS[DEFAULT_LANG]["yearless"]) }} -- {{ article.conference_date_end|strftime(DATE_HACK_FORMATS[DEFAULT_LANG]["short"]) }}
{{ article.title }}
{% if article.school %}
research school
{% else %}
conference
{% endif %}
{% endif %}
{% if article.category.name == "teaching" %}
{{ article.class_year_begin }} -- {% if article.class_year_end %}{{ article.class_year_end }}{% else %}Now{% endif %}
{{ article.title }}
teaching
{% endif %}
{% if not list_short %}
{% if article.slides %}
[ Slides ]
{% endif %}
{% if article.poster %}
[ Poster ]
{% endif %}
{% if article.video %}
[ Video ]
{% endif %}
{% if article.demo_ext_link %}
[ Demo ]
{% endif %}
{% if article.demo_int_link %}
[ Demo ]
{% endif %}
{% if article.course_doc_link %}
[ Course material ]
{% endif %}
{% if article.course_ext_link %}
[ Course material ]
{% endif %}
{% if article.git %}
[ Git ]
{% endif %}
{% endif %}