horizon/openstack_dashboard/templates/context_selection/_project_list.html
David Lyle 7a2c528f17 Fixing template compatibility
New template files missing proper url import. Adding imports.

Closes-Bug: #1372334
Change-Id: I053996065ada3977432d3d46eb5e6724cae31e97
2014-09-22 11:32:00 -06:00

19 lines
499 B
HTML

{% 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="glyphicon glyphicon-ok"></span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endwith %}