{% load horizon i18n %}

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

  {% if request.horizon.dashboard.supports_tenants %}
  <div id="tenant_switcher" class="switcher_bar">
    <a id="current_tenant" class="current_item" href="{% url horizon:nova:overview:index %}">
      <h4>Project</h4>
      <h3>{{ request.user.tenant_name }}</h3>
    </a>
    <a class="drop_btn" href="#">&nbsp;</a>
    <ul id="user_tenant_list" class="item_list">
      {% 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>
