{% if doc %}
{% if stream %} {% if state %}{{ state.name }}{% else %}{{ stream }}{% endif %} {% else %} No stream assigned {% endif %}
{% endif %}