{% if asset.content_type == 'text/html' %} {% elif asset.content_type == 'application/pdf' %} {% elif asset.content_type == 'image/png' or asset.content_type == 'image/jpeg' or asset.content_type == 'image.gif' %} {% else %} {% endif %}