horizon/openstack_dashboard/templates/header/_user_menu.html
Rob Cresswell aa444a60b1 Add OpenStack RC Download buttons to user menu
Adds the OpenStack RC Download buttons for keystone v2 and v3 to
the user menu dropdown

Change-Id: Ia1502f3f54e42ad0f18a8535871a27858a80e3d3
Implements: blueprint reorganise-access-and-security
2017-01-31 15:26:41 +13:00

70 lines
2.0 KiB
HTML

{% load i18n %}
{% load themes %}
{% if not_list %}
<div class="dropdown user-menu">
{% else %}
<li class="dropdown user-menu">
{% endif %}
<a data-toggle="dropdown" href="#" class="dropdown-toggle" role="button" aria-expanded="false">
<span class="fa fa-user"></span>
<span class="user-name">{{ request.user.username }}</span>
<span class="fa fa-caret-down"></span>
</a>
<ul id="editor_list" class="dropdown-menu dropdown-menu-right selection-menu">
<li>
<a href="{% url 'horizon:settings:user:index' %}" target="_self">
<span class="fa fa-cog"></span>
{% trans "Settings" %}
</a>
</li>
{% if HORIZON_CONFIG.bug_url %}
<li>
<a href="{{ HORIZON_CONFIG.bug_url }}" target="_blank">
<span class="fa fa-bug"></span>
{% trans "Report Bug" %}
</a>
</li>
{% endif %}
{% if HORIZON_CONFIG.help_url %}
<li>
<a href="{{ HORIZON_CONFIG.help_url }}" target="_blank">
<span class="fa fa-question-circle"></span>
{% trans "Help" %}
</a>
</li>
{% endif %}
<li>
<a href="{% url 'horizon:project:api_access:openrcv2' %}">
<span class="fa fa-download"></span>
{% trans "OpenStack RC File v2" %}
</a>
</li>
<li>
<a href="{% url 'horizon:project:api_access:openrc' %}">
<span class="fa fa-download"></span>
{% trans "OpenStack RC File v3" %}
</a>
</li>
{% themes as available_themes %}
{% if available_themes and available_themes|length > 1 %}
<li class="divider"></li>
<li>
{% include 'header/_theme_list.html' %}
</li>
{% endif %}
<li class="divider"></li>
<li>
<a href="{% url 'logout' %}" target="_self">
<span class="fa fa-sign-out"></span>
{% trans "Sign Out" %}
</a>
</li>
</ul>
{% if not_list %}
</div>
{% else %}
</li>
{% endif %}