This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
devel:blueprints:django_template [2010/01/13 10:46] eide django template blocks |
devel:blueprints:django_template [2010/01/13 10:50] eide template variables |
||
---|---|---|---|
Line 25: | Line 25: | ||
Returns the version number from nav.web.buildconf | Returns the version number from nav.web.buildconf | ||
- | ==== Template blocks and filters ==== | + | ==== Template blocks and variables ==== |
- | The base templates contains a number of template blocks and tags that both can be overwritten by subsystems. | + | The base templates contains a number of template blocks and variables that both can be overwritten by subsystems. |
+ | ^ Blocks ^^ | ||
| base_header | The header. Doctype, HTML head section and the header parts of the html. | | | base_header | The header. Doctype, HTML head section and the header parts of the html. | | ||
| base_header_head | The head block. | | | base_header_head | The head block. | | ||
Line 40: | Line 41: | ||
| base_debug | Output from the debug preprocessor. | | | base_debug | Output from the debug preprocessor. | | ||
| base_footer | The footer | | | base_footer | The footer | | ||
+ | |||
+ | ^ Variables ^^ | ||
+ | | title | Title of the page. Appears inside base_header_title so subsystems can use either one of them. | | ||
+ | | navpath | Breadcrumb path. Contains a list of tuples on the form (url, title). If url is None regular text is displayed, else you get an anchor. | | ||
+ | | navbar | Users navigation bar. Supplied from account_processor. | | ||
+ | | qlink1 and qlink2 | Quick link drop-downs. Supplied from account_processor. | | ||
+ | | nav_version | NAV Version, supplied from nav_version context preprocessor. | | ||
===== Backwards compability ===== | ===== Backwards compability ===== |