horizon/openstack_dashboard/templates/context_selection/_region_list.html

18 lines
506 B
HTML

{% load i18n %}
{% with panel_url=request.horizon.panel.get_absolute_url %}
<ul class="dropdown-menu">
<li class="dropdown-header">{% trans "Regions:" %}</li>
{% for region in regions %}
<li>
<a href="{% url 'switch_services_region' region %}?next={{ panel_url }}" target="_self">
<span class="region-name dropdown-title">{{ region }}</span>
{% if region == region_name %}
<span class="fa fa-check"></span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endwith %}