horizon/openstack_dashboard/templates/context_selection/_region_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

21 lines
493 B
HTML

{% load i18n %}
{% load url from future %}
{% if multi_region %}
{% with panel_url=request.horizon.panel.get_absolute_url %}
<ul>
<li class="dropdown-header">{% trans "Regions:" %}</li>
{% for region in regions %}
<li>
<a href="{% url 'switch_services_region' region %}?next={{ panel_url }}">
{{ region }}
{% if region == region_name %}
<span class="glyphicon glyphicon-ok"></span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endwith %}
{% endif %}