{% load i18n %}
{% load url from future %}

{% with dashboard_url=request.horizon.dashboard.get_absolute_url %}
<ul>
  <li class="dropdown-header">{% trans "Projects:" %}</li>
  {% for project in projects %}
  <li>
    <a href="{% url 'switch_tenants' project.id %}?next={{ dashboard_url }}">
      {{ project.name }}
      {% if project.enabled and project.id == project_id %}
      <span class="fa fa-check"></span>
      {% endif %}
    </a>
  </li>
  {% endfor %}
</ul>
{% endwith %}
