From: Evan Broder Date: Fri, 25 Jul 2008 07:06:55 +0000 (+0000) Subject: Move common title generating code into base template X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=c2968a707f3064e347d8cf001116d6a18fef578a;p=bluechips.git Move common title generating code into base template --- 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 %>