{% if asset.id %}
{# posted asset; so we have content to show #}
{% autoescape off %}{% with asset|enclosurebymaxwidth:settings.video_max_width as video %}{{ video.html }}{% endwith %}{% endautoescape %}
{% else %}
{# moderated asset; all we have is a link #}