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