Fix template references for app_title

make sure we only look to /base_meta.mako for that
This commit is contained in:
Lance Edgar 2018-11-27 18:20:56 -06:00
parent 46867b1154
commit b0a52dcec2

View file

@ -1,5 +1,6 @@
## -*- coding: utf-8 -*- ## -*- coding: utf-8 -*-
<%inherit file="tailbone:templates/mobile/base.mako" /> <%inherit file="tailbone:templates/mobile/base.mako" />
<%namespace name="base_meta" file="/base_meta.mako" />
<%def name="mobile_usermenu()"> <%def name="mobile_usermenu()">
<div id="usermenu" data-role="panel" data-display="overlay"> <div id="usermenu" data-role="panel" data-display="overlay">
@ -17,7 +18,7 @@
<li>${h.link_to("Products", url('mobile.products'))}</li> <li>${h.link_to("Products", url('mobile.products'))}</li>
% endif % endif
<li data-icon="lock">${h.link_to("Logout", url('logout'), **{'data-ajax': 'false'})}</li> <li data-icon="lock">${h.link_to("Logout", url('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>