From c2968a707f3064e347d8cf001116d6a18fef578a Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Fri, 25 Jul 2008 07:06:55 +0000 Subject: [PATCH] Move common title generating code into base template --- bluechips/templates/base.mako | 6 +++++- bluechips/templates/history/index.mako | 2 -- bluechips/templates/spend/index.mako | 1 - bluechips/templates/transfer/index.mako | 1 - 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako index ee8ad78..66a7cb9 100644 --- a/bluechips/templates/base.mako +++ b/bluechips/templates/base.mako @@ -38,7 +38,11 @@ -<%def name="title()">BlueChips +<%def name="title()">BlueChips +% if c.title != '': + :: ${c.title} +% endif + <%def name="listExpenditures(es)"> diff --git a/bluechips/templates/history/index.mako b/bluechips/templates/history/index.mako index 6cb5fb1..7921e0f 100644 --- a/bluechips/templates/history/index.mako +++ b/bluechips/templates/history/index.mako @@ -1,7 +1,5 @@ <%inherit file="/base.mako"/> -<%def name="title()">${parent.title()} :: ${c.title} -

Group Expenditures

${self.listExpenditures(c.expenditures)} diff --git a/bluechips/templates/spend/index.mako b/bluechips/templates/spend/index.mako index e828330..7cff4a8 100644 --- a/bluechips/templates/spend/index.mako +++ b/bluechips/templates/spend/index.mako @@ -1,6 +1,5 @@ <%inherit file="/base.mako"/> -<%def name="title()">${parent.title()} :: ${c.title} <%! import bluechips.widgets.spend as forms %> diff --git a/bluechips/templates/transfer/index.mako b/bluechips/templates/transfer/index.mako index 73a7042..ec23631 100644 --- a/bluechips/templates/transfer/index.mako +++ b/bluechips/templates/transfer/index.mako @@ -1,6 +1,5 @@ <%inherit file="/base.mako"/> -<%def name="title()">${parent.title()} :: ${c.title} <%! import bluechips.widgets.transfer as forms %> -- 2.45.2