{% load horizon i18n %}

<div class='sidebar'>
  <h1 class="brand clearfix"><a href="{% url horizon:user_home %}">{% trans "OpenStack Dashboard" %}</a></h1>

  {% horizon_main_nav %}

  {% if request.horizon.dashboard.supports_tenants %}
  <div id="tenant_switcher" class="dropdown switcher_bar" tabindex='1'>
    <a class="dropdown-toggle" data-toggle="dropdown" href="#tenant_switcher">
      <h4>{% trans "Project" %}</h4>
      <h3>{{ request.user.tenant_name }}</h3>
      </a>
    <ul id="tenant_list" class="dropdown-menu">
      <li class='divider'></li>
      {% for tenant in authorized_tenants %}
        {% if tenant.enabled %}
          <li><a href="{% url horizon:auth_switch tenant.id %}">{{ tenant.name }}</a></li>
        {% endif %}
      {% endfor %}
    </ul>
  </div>
  {% endif %}

  {% horizon_dashboard_nav %}
</div>
