Added global_title() to base template.

This commit is contained in:
Lance Edgar 2013-09-06 04:13:50 -07:00
parent 0d0445592e
commit 2e84873666

View file

@ -2,7 +2,7 @@
<html style="direction: ltr;" xmlns="http://www.w3.org/1999/xhtml" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Tailbone &raquo; ${capture(self.title)}</title>
<title>${self.global_title()} &raquo; ${capture(self.title)}</title>
<link rel="icon" type="image/x-icon" href="${request.static_url('tailbone:static/img/rattail.ico')}" />
${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery-1.9.1.min.js'))}
@ -29,7 +29,7 @@
<div id="body-wrapper">
<div id="header">
<h1>${h.link_to("Tailbone", url('home'))}</h1>
<h1>${h.link_to(capture(self.global_title), url('home'))}</h1>
<h1 class="title">&raquo; ${self.title()}</h1>
<div class="login">
% if request.user:
@ -136,6 +136,8 @@
</body>
</html>
<%def name="global_title()">Tailbone</%def>
<%def name="title()"></%def>
<%def name="head_tags()"></%def>