Support themes for horizon

Registered by Matthias Runge

In many organizations, horizon should look different from standard horizon. This includes css, graphics, and also templates

Preferable, the selected theme should be loaded, if corresponding files are available; if not, default files should be used.

Blueprint information

Status:
Complete
Approver:
Gabriel Hurley
Priority:
Low
Drafter:
Matthias Runge
Direction:
Needs approval
Assignee:
Matthias Runge
Definition:
Review
Series goal:
Accepted for grizzly
Implementation:
Implemented
Milestone target:
milestone icon 2013.1
Started by
Matthias Runge
Completed by
Gabriel Hurley

Related branches

Sprints

Whiteboard

currently, templates are put into into applications directories, like:
dashboards/project/overview/templates/overview/

To create a theme, e.g. named "custom" for the template usage.html placed in above mentioned directory you would do:
- add a config option in settings.py (or local_settings): THEME="custom"
- create a directory in above dir:
mkdir custom
cp usage.html custom/

and modify usage.html in custom.

There's a global variable named "THEME" to be used in templates.

As general rule: to customize arbitrary templates, create a directory named like the theme in the template dir, copy the file to customized there and modify that.

If there's no customized template file is found, the base file will be used.

Gerrit topic: https://review.openstack.org/#q,topic:bp/theme-support,n,z

Addressed by: https://review.openstack.org/20804
    Support themes

(?)

Work Items

Work items:
add a theme option to config file: DONE
enhance template system: DONE

This blueprint contains Public information 
Everyone can see this information.