{% import 'partial/translations.html' as translations with context %} {{ translations.translations_for(publications) }} Publications {% block before_content %}{% endblock %} {% for group in publications|groupby(1)|reverse %} {{ group.grouper }} {% for key, year, text, bibtex, pdf, slides, poster in group.list %} {{ text }} [ Bibtex ] {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} {{ "[ %s ]" % (target, label) if target }} {% endfor %} {% endfor %} {% endfor %} {% block after_content %}{% endblock %}