Various template standardization tweaks
This commit is contained in:
parent
b1f98c1023
commit
1adcb98f11
|
@ -173,7 +173,9 @@ def main(global_config, **settings):
|
|||
"""
|
||||
This function returns a Pyramid WSGI application.
|
||||
"""
|
||||
settings.setdefault('mako.directories', ['tailbone:templates'])
|
||||
settings.setdefault('mako.directories', [
|
||||
'tailbone:templates/themes/better',
|
||||
'tailbone:templates'])
|
||||
rattail_config = make_rattail_config(settings)
|
||||
pyramid_config = make_pyramid_config(settings)
|
||||
pyramid_config.include('tailbone')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/base.mako" />
|
||||
|
||||
<%def name="title()">About ${project_title}</%def>
|
||||
<%def name="title()">About ${self.app_title()}</%def>
|
||||
|
||||
<h2>${project_title} ${project_version}</h2>
|
||||
|
||||
|
|
|
@ -102,7 +102,9 @@
|
|||
</body>
|
||||
</html>
|
||||
|
||||
<%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}Rattail</%def>
|
||||
<%def name="app_title()">Rattail</%def>
|
||||
|
||||
<%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}${self.app_title()}</%def>
|
||||
|
||||
<%def name="content_title()">
|
||||
<h1>${self.title()}</h1>
|
||||
|
|
Loading…
Reference in a new issue