Gabriel Hurley 9742842795 Re-architects the OpenStack Dashboard for modularity and extensibility.
Implements blueprint extensible-architecture.
Implements blueprint improve-dev-documentation.
Implements blueprint gettext-everywhere.
Implements blueprint sphinx-docs.

Complete re-architecture of the dashboard to transform it from a standalone django-openstack app to a Horizon framework for building dashboards. See the docs for more information.

Incidentally fixes the following bugs:

Fixes bug 845868 -- no PEP8 violations.
Fixes bug 766096 -- the dashboard can now be installed at any arbitrary URL.
Fixes bug 879111 -- tenant id is now controlled solely by the tenant switcher, not the url (which was disregarded anyway)
Fixes bug 794754 -- output of venv installation is considerably reduced.

Due to the scale and scope of this patch I recommend reviewing it on github: https://github.com/gabrielhurley/horizon/tree/extensible_architecture

Change-Id: I8e63f7ea235f904247df40c33cb66338d973df9e
2011-11-07 12:59:21 -08:00

27 lines
993 B
HTML

{% load horizon i18n %}
<div id='header'>
<ul id="main_nav">
<li id="home_link"><h1><a href='{% url splash %}'>{% trans "OpenStack Dashboard"%}</a></h1></li>
{% horizon_main_nav %}
<li><a id="settings_btn" {% if request.horizon.dashboard.slug == "settings" %} class="active" {% endif %} href="{% url horizon:settings:user:index %}">&nbsp;</a></li>
</ul>
<div id="user_bar">
<a id="current_tenant" href="#FIXME">
<h4>{{request.user.tenant_name}}</h4>
<span>as {{request.user.username}}</span>
</a>
<a id="drop_btn" href="#">&nbsp;</a>
<ul id="user_tenant_list">
<li class="title"><h4>{% trans "Available Tenants"%}</h4></li>
{% for tenant in tenants %}
{% if tenant.enabled %}
<li><a href="{% url horizon:auth_switch tenant.id %}">{{tenant.name}}</a></li>
{% endif %}
{% endfor %}
<li id="sign_out"><a href="{% url horizon:auth_logout %}">{% trans "Sign Out"%}</a></li>
</ul>
</div>
</div>