summaryrefslogtreecommitdiff
path: root/openstack_dashboard/context_processors.py
diff options
context:
space:
mode:
authorDavid Lyle <david.lyle@hp.com>2014-01-29 17:40:46 -0700
committerDavid Lyle <david.lyle@hp.com>2014-02-26 14:03:36 -0700
commit8b53d1f094876beecb009ad0076db8070057b4a2 (patch)
tree04d8fe3488fb71d0546e7c029c84a1d457bb8b6c /openstack_dashboard/context_processors.py
parent990f151cdc16af7ca81e0fc61231344c3b4d8ff2 (diff)
downloadhorizon-8b53d1f094876beecb009ad0076db8070057b4a2.tar.gz
Implementing accordion navigation
Left hand side navigation is now an accordion with collapsable dashboards and panel groups. The project and region pickers have been relocated to the header. They will be further enhanced in a future bp. The help link and settings link have now been placed in a user dropdown as well. The page header text is still preserved and now sits above the main content. This information is generally redundant with the table headers or the panel selected in the left hand navigation, and should be considered for removal in a different bp. Implements blueprint navigation-enhancement Change-Id: I9588cabdf4ce41bd08cadff780b1a87f73dbbea5
Diffstat (limited to 'openstack_dashboard/context_processors.py')
-rw-r--r--openstack_dashboard/context_processors.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py
index f4e1d8913..76660dfac 100644
--- a/openstack_dashboard/context_processors.py
+++ b/openstack_dashboard/context_processors.py
@@ -41,9 +41,7 @@ def openstack(request):
# Auth/Keystone context
context.setdefault('authorized_tenants', [])
- current_dash = request.horizon['dashboard']
- needs_tenants = getattr(current_dash, 'supports_tenants', False)
- if request.user.is_authenticated() and needs_tenants:
+ if request.user.is_authenticated():
context['authorized_tenants'] = request.user.authorized_tenants
# Region context/support