{%if sidebar_visible and not topbar %}
{% for content in sidebar_content %} {{ content.html|safe }}
{% endfor %}
{% endif %} {% for content in main_content %}
{% if topbar and content.topbar is not None %}{{ content.topbar|safe }}{% endif %} {{ content.html|safe }}
{% endfor %} {%if sidebar_visible and not topbar %}
{% endif %}