Merge "Fix hide drop_arrow.png if only one tenant"

This commit is contained in:
Jenkins 2014-05-21 01:10:07 +00:00 committed by Gerrit Code Review
commit 6539deb424
2 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,10 @@ dt {
display: inline;
}
.hide_image {
background-image: none !important;
}
#profile_editor_switcher {
width:auto;
max-width: 200px;

View File

@ -3,8 +3,8 @@
<h1 class="brand"><a href="{% site_branding_link %}">{% site_branding %}</a></h1>
<div class="context-box">
<div id="tenant_switcher" class="dropdown switcher_bar" tabindex="1">
{% with num_of_tenants=authorized_tenants|length %}
<div id="tenant_switcher" class="dropdown switcher_bar {% if num_of_tenants == 1 %} hide_image {% endif %}" tabindex="1">
{% if num_of_tenants > 1 %}
<a class="dropdown-toggle" data-toggle="dropdown" href="#tenant_switcher">
{% endif %}