Removing the current project from the drop-down.

Removing the current region as well. Also renaming
the label to be "Current" Project, and updating
the translation files.

Change-Id: I60e37ff9490b9709fb4bf9b2fd936b39092e215d
This commit is contained in:
John Postlethwait 2012-05-23 10:51:41 -07:00
parent dcae1d7643
commit 9cb0c10025
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,9 @@
<ul id="region_list" class="dropdown-menu">
<li class='divider'></li>
{% for region in regions.available %}
<li><a class="ajax-modal" href="{% url horizon:auth_login %}?region={{ region.endpoint }}">{{ region.name }}</a></li>
{% if region.name != regions.current.name %}
<li><a class="ajax-modal" href="{% url horizon:auth_login %}?region={{ region.endpoint }}">{{ region.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>

View File

@ -8,13 +8,13 @@
{% if request.horizon.dashboard.supports_tenants %}
<div id="tenant_switcher" class="dropdown switcher_bar" tabindex='1'>
<a class="dropdown-toggle" data-toggle="dropdown" href="#tenant_switcher">
<h4>{% trans "Project" %}</h4>
<h4>{% trans "Current Project" %}</h4>
<h3>{{ request.user.tenant_name }}</h3>
</a>
<ul id="tenant_list" class="dropdown-menu">
<li class='divider'></li>
{% for tenant in authorized_tenants %}
{% if tenant.enabled %}
{% if tenant.enabled and tenant.id != request.user.tenant_id %}
<li><a href="{% url horizon:auth_switch tenant.id %}">{{ tenant.name }}</a></li>
{% endif %}
{% endfor %}