Fix template references for app_title
make sure we only look to /base_meta.mako for that
This commit is contained in:
parent
acaa83c31a
commit
508359a939
|
@ -1,7 +1,8 @@
|
||||||
## -*- coding: utf-8 -*-
|
## -*- coding: utf-8 -*-
|
||||||
<%inherit file="/base.mako" />
|
<%inherit file="/base.mako" />
|
||||||
|
<%namespace name="base_meta" file="/base_meta.mako" />
|
||||||
|
|
||||||
<%def name="title()">About ${self.app_title()}</%def>
|
<%def name="title()">About ${base_meta.app_title()}</%def>
|
||||||
|
|
||||||
<h2>${project_title} ${project_version}</h2>
|
<h2>${project_title} ${project_version}</h2>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
## -*- coding: utf-8; -*-
|
## -*- coding: utf-8; -*-
|
||||||
<%inherit file="/base.mako" />
|
<%inherit file="/base.mako" />
|
||||||
|
<%namespace name="base_meta" file="/base_meta.mako" />
|
||||||
|
|
||||||
<%def name="title()">Home</%def>
|
<%def name="title()">Home</%def>
|
||||||
|
|
||||||
|
@ -16,6 +17,6 @@
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
${h.image(image_url, "{} logo".format(capture(self.app_title)), id='logo', width=500)}
|
${h.image(image_url, "{} logo".format(capture(base_meta.app_title)), id='logo', width=500)}
|
||||||
<h1>Welcome to ${self.app_title()}</h1>
|
<h1>Welcome to ${base_meta.app_title()}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
## -*- coding: utf-8; -*-
|
## -*- coding: utf-8; -*-
|
||||||
<%inherit file="/base.mako" />
|
<%inherit file="/base.mako" />
|
||||||
|
<%namespace name="base_meta" file="/base_meta.mako" />
|
||||||
|
|
||||||
<%def name="title()">Login</%def>
|
<%def name="title()">Login</%def>
|
||||||
|
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="logo()">
|
<%def name="logo()">
|
||||||
${h.image(image_url, "{} logo".format(capture(self.app_title)), id='logo', width=500)}
|
${h.image(image_url, "{} logo".format(capture(base_meta.app_title)), id='logo', width=500)}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="login_form()">
|
<%def name="login_form()">
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
## -*- coding: utf-8 -*-
|
## -*- coding: utf-8 -*-
|
||||||
<%inherit file="/mobile/base.mako" />
|
<%inherit file="/mobile/base.mako" />
|
||||||
|
<%namespace name="base_meta" file="/base_meta.mako" />
|
||||||
|
|
||||||
<%def name="title()">About ${self.app_title()}</%def>
|
<%def name="title()">About ${base_meta.app_title()}</%def>
|
||||||
|
|
||||||
<h2>${project_title} ${project_version}</h2>
|
<h2>${project_title} ${project_version}</h2>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
## -*- coding: utf-8 -*-
|
## -*- coding: utf-8 -*-
|
||||||
|
<%namespace name="base_meta" file="/base_meta.mako" />
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
<title>${self.global_title()} » ${self.title()}</title>
|
<title>${base_meta.global_title()} » ${self.title()}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
${self.jquery()}
|
${self.jquery()}
|
||||||
|
@ -64,10 +65,6 @@
|
||||||
</body>
|
</body>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="app_title()">Rattail Demo</%def>
|
|
||||||
|
|
||||||
<%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}${self.app_title()}</%def>
|
|
||||||
|
|
||||||
<%def name="page_url()">${request.current_route_url()}</%def>
|
<%def name="page_url()">${request.current_route_url()}</%def>
|
||||||
|
|
||||||
<%def name="page_title()">${self.title()}</%def>
|
<%def name="page_title()">${self.title()}</%def>
|
||||||
|
@ -88,7 +85,7 @@
|
||||||
<%def name="mobile_header()">
|
<%def name="mobile_header()">
|
||||||
<div data-role="header">
|
<div data-role="header">
|
||||||
${self.mobile_header_link()}
|
${self.mobile_header_link()}
|
||||||
<h1>${self.global_title()}</h1>
|
<h1>${base_meta.global_title()}</h1>
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
@ -116,7 +113,7 @@
|
||||||
<li class="root-user" data-icon="forbidden">${h.link_to("Become root", url('become_root'), **{'data-ajax': 'false'})}</li>
|
<li class="root-user" data-icon="forbidden">${h.link_to("Become root", url('become_root'), **{'data-ajax': 'false'})}</li>
|
||||||
% endif
|
% endif
|
||||||
<li data-icon="lock">${h.link_to("Logout", url('mobile.logout'), **{'data-ajax': 'false'})}</li>
|
<li data-icon="lock">${h.link_to("Logout", url('mobile.logout'), **{'data-ajax': 'false'})}</li>
|
||||||
<li data-icon="info">${h.link_to("About {}".format(capture(self.app_title)), url('mobile.about'))}</li>
|
<li data-icon="info">${h.link_to("About {}".format(capture(base_meta.app_title)), url('mobile.about'))}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue