Files
horizon/openstack_dashboard/templates/_header.html
David Lyle 4f9d5b186e Replaces always disabled context selection link
In the context selection dropdown, there is currently an always disabled
link to do more advanced filtering. The original intent was to open a
modal to do more advanced context selection. With the use of RBAC in a
previous bp, the Identity->Projects panel is always accessible. This
panel provides the entire project list for the user. We can just use
this to provide the larger project list to select from.

Change-Id: I0d6674e75785206f3be48c8bf004a29906bb6860
Closes-Bug: #1382650
2014-10-20 15:50:12 -06:00

44 lines
1.5 KiB
HTML

{% load branding i18n %}
{% load url from future %}
{% load context_selection %}
<h1 class="brand"><a href="{% site_branding_link %}">{% site_branding %}</a></h1>
<div class="context-box">
<div class="dropdown context-selection">
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
{% show_overview %}
</button>
<div class="dropdown-menu">
<div class="context-lists">
{% show_domain_list %}
{% show_project_list %}
{% show_region_list %}
</div>
<div class="footer">
<span class="glyphicon glyphicon-cog"></span>
<a href="{% url 'horizon:identity:projects:index' %}">{% trans "More Projects" %}</a>
</div>
</div><!-- end of dropdown-menu -->
</div><!-- end of context-selection -->
</div><!-- end of context-box -->
<div id="user_info" class="pull-right">
<div id="profile_editor_switcher" class="dropdown switcher_bar" tabindex='1'>
<a class="dropdown-toggle" data-toggle="dropdown" href="#profile_editor_switcher">
<div>{{ request.user.username }}</div>
</a>
<ul id="editor_list" class="dropdown-menu">
<li class='divider'></li>
<li><a href="{% url 'horizon:settings:user:index' %}">{% trans "Settings" %}</a></li>
{% if HORIZON_CONFIG.help_url %}
<li><a href="{{ HORIZON_CONFIG.help_url }}" target="_new">{% trans "Help" %}</a></li>
{% endif %}
</ul>
</div>
<a href="{% url 'logout' %}">{% trans "Sign Out" %}</a>
{% include "horizon/common/_region_selector.html" %}
</div>