diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-03-07 00:07:56 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-03-07 00:07:56 +0000 |
commit | 750ef0b347c71793dab47b0cc7007a8e1dda8f4a (patch) | |
tree | efdbf06eacdd80760e0e902e10586b22efb77748 /horizon/tabs | |
parent | 2cb7b27bd323ca5d65959f837fad09f2b4499728 (diff) | |
parent | 4668dc4548e72accefe8d08c0de547fb8709c544 (diff) | |
download | horizon-750ef0b347c71793dab47b0cc7007a8e1dda8f4a.tar.gz |
Merge "Allow to hide tab title bar when only one tab is available"
Diffstat (limited to 'horizon/tabs')
-rw-r--r-- | horizon/tabs/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/horizon/tabs/base.py b/horizon/tabs/base.py index 8731de7eb..2dcde25b6 100644 --- a/horizon/tabs/base.py +++ b/horizon/tabs/base.py @@ -48,6 +48,11 @@ class TabGroup(html.HTMLElement): across requests for a given user. (State storage is all done client-side.) + .. attribute:: show_single_tab + + Boolean to control whether the tab bar is shown when the tab group + has only one tab. Default: ``False`` + .. attribute:: param_name The name of the GET request parameter which will be used when @@ -77,6 +82,7 @@ class TabGroup(html.HTMLElement): template_name = "horizon/common/_tab_group.html" param_name = 'tab' sticky = False + show_single_tab = False _selected = None _active = None |