Various template standardization tweaks

This commit is contained in:
Lance Edgar 2017-03-29 00:21:10 -05:00
parent b1f98c1023
commit 1adcb98f11
3 changed files with 7 additions and 3 deletions

View file

@ -173,7 +173,9 @@ def main(global_config, **settings):
""" """
This function returns a Pyramid WSGI application. 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) rattail_config = make_rattail_config(settings)
pyramid_config = make_pyramid_config(settings) pyramid_config = make_pyramid_config(settings)
pyramid_config.include('tailbone') pyramid_config.include('tailbone')

View file

@ -1,7 +1,7 @@
## -*- coding: utf-8 -*- ## -*- coding: utf-8 -*-
<%inherit file="/base.mako" /> <%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> <h2>${project_title} ${project_version}</h2>

View file

@ -102,7 +102,9 @@
</body> </body>
</html> </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()"> <%def name="content_title()">
<h1>${self.title()}</h1> <h1>${self.title()}</h1>