{% macro render_thumbnail(parent, thumbnail_size=None, no_external_references=False) -%} {% set thumb = parent.thumbnail(thumbnail_size) %} {% if not no_external_references and thumb %} {% else %} {% endif %} {%- endmacro %} {% macro render_message(message, preview_size=None, no_external_references=False) -%}