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

@ -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>

View file

@ -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>