horizon/openstack_dashboard
Tyler Smith 2e7dce8268 Adds extensible header functionality
This change is to introduce a flexible mechanism for projects to
add content to horizon's navbar.
- Introduces a new plugin file variable called ADD_HEADER_SECTIONS,
  which will take a list of views.  These are template views that
  will be used to render individual header sections.
- There is a new view in openstack_dashboard/views.py to cycle
  through these added views and combine them into the complete
  header to be added to the navbar.
- This view is queried by newly added javascript after page load.
  On response it is inserted into the page's navbar.
  If more than one header is present, the first will be shown in
  the navbar, while the rest are added to a drop-down menu.
- The currently displayed header can be changed by clicking on a
  new header in the drop-down; this is stored in a cookie to
  persist the selection between pages.
- Unit tests were modified/added to verify the new plugin entry
  can be parsed successfully and the main header view can parse
  a plugin's view successfully

Change-Id: I177b69ec4e78c17f827e540a7e669af1c29e8b59
Implements: blueprint extensible-header
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2017-10-03 17:11:06 +00:00
..
api Fix a bug to unable to retrieve ports when no trunk ext 2017-09-19 18:01:52 +00:00
conf Update neutron policy file 2017-08-17 15:07:29 +02:00
contrib Theme Preview Page should include datepicker. 2017-07-27 10:24:33 -07:00
dashboards Include add subnet action on admin networks panel 2017-09-21 19:49:02 -07:00
django_pyscss_fix Handle log message interpolation by the logger 2017-03-31 20:59:16 +09:00
enabled Merge "Revert "Enable to refresh ngdetails view"" 2017-08-05 04:26:50 +00:00
local Merge "Clarify the comment for WEBSSO_INITIAL_CHOICE" 2017-09-27 23:07:41 +00:00
locale Imported Translations from Zanata 2017-09-27 06:13:29 +00:00
management extract_messages, update_catalog: Simplify help message 2017-08-29 12:35:30 +00:00
static Adds extensible header functionality 2017-10-03 17:11:06 +00:00
templates Adds extensible header functionality 2017-10-03 17:11:06 +00:00
templatetags Added SELECTABLE_THEMES setting 2017-07-26 11:52:35 +01:00
test Adds extensible header functionality 2017-10-03 17:11:06 +00:00
themes Adds extensible header functionality 2017-10-03 17:11:06 +00:00
usage Disable 'Create Port' button if ports quota is exceeded 2017-08-29 20:41:58 +08:00
utils Adds extensible header functionality 2017-10-03 17:11:06 +00:00
wsgi Normalise the path to resolve ../.. 2016-11-14 16:29:28 +11:00
__init__.py
.eslintrc Add selective ESLint rule activation for Horizon Legacy JS 2015-07-08 17:06:15 -07:00
context_processors.py Fix KeyError for HORIZON_CONFIG['plugins'] in plugin UT 2017-07-07 11:33:40 +00:00
exceptions.py Excise Trove from Horizon 2015-12-22 02:01:07 -07:00
hooks.py
karma.conf.js Makes the xstatic files lookup dynamic in the tests 2017-07-27 10:01:33 -04:00
policy.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
settings.py Angularize Key Pairs index view 2017-08-25 14:40:03 +09:00
theme_settings.py Added SELECTABLE_THEMES setting 2017-07-26 11:52:35 +01:00
urls.py Adds extensible header functionality 2017-10-03 17:11:06 +00:00
views.py Adds extensible header functionality 2017-10-03 17:11:06 +00:00