horizon/openstack_dashboard/templates/header/_context_selection.html
Radomir Dopieralski 34a0159d1a Add system scope support to context switcher
Change-Id: Idd2ec7ae6e978a358b4b3639e86cadae06c90976
2021-11-26 14:09:46 +01:00

42 lines
1.0 KiB
HTML

{% load context_selection %}
<li class="dropdown">
<a class="dropdown-toggle" role="button" aria-expanded="false" data-toggle="dropdown" href="#">
{% show_overview %}
<span class="fa fa-caret-down"></span>
</a>
<ul class="dropdown-menu context-selection selection-menu">
{% comment %}
is_multidomain is only available through an assignment tag pulled in through context_selection
{% endcomment %}
{% is_multidomain as domain_supported %}
{% if domain_supported %}
<li>
{% show_domain_list %}
</li>
{% endif %}
<li>
{% show_project_list %}
</li>
{% comment %}
is_multi_region is only available through an assignment tag pulled in through context_selection
{% endcomment %}
{% is_multi_region as multi_region %}
{% if multi_region %}
<li>
{% show_region_list %}
</li>
{% endif %}
{% is_system_user as system_user %}
{% if system_user %}
<li>
{% show_system_list %}
</li>
{% endif %}
</ul>
</li>