{% if videos %} {% for media in videos %} {{ media.render_template }} {% endfor %} {% else %} No media found {% endif %}