{# When we are rendering the top nav bar (wide screens) we use bootstrap dropdowns, #} {# when we render the sidebar (narrow screens) use collapse instead. #} {# TODO: If you have a section uncollapsed and then expand the width of your screen, weird shit happens #} {% if in_header %} {% set toggle="dropdown" %} {% set list_class="dropdown-menu" %} {% else %} {% set toggle="collapse" %} {% set list_class="collapse" %} {% endif %}