summaryrefslogtreecommitdiff
path: root/openstack_dashboard/templates/header/_context_selection.html
blob: 080b8a3818b51b263ef21a898bed40ac11d5979f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% 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 %}


    {% show_systems as system_scope_enabled %}
    {% if system_scope_enabled %}
      <li>
        {% show_system_list %}
      </li>
    {% endif %}
  </ul>
</li>