diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2012-01-10 22:54:23 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2012-01-10 22:54:23 +0100 |
commit | a623647d714495439523c124e7efe517d6c15314 (patch) | |
tree | c2ed83240e12883944ba6c7f97736d9ef8db6c19 /templates/pages/show.mako | |
parent | 8de68a6a0d027a86205cab0c078230e9391496d5 (diff) | |
download | kosten-a623647d714495439523c124e7efe517d6c15314.tar.gz kosten-a623647d714495439523c124e7efe517d6c15314.tar.bz2 kosten-a623647d714495439523c124e7efe517d6c15314.zip |
Switch to mako blocks
Diffstat (limited to '')
-rw-r--r-- | templates/pages/show.mako | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako index 565a518..a255fa9 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -38,22 +38,22 @@ ${self.left_arrow(date, date)} ${self.right_arrow(date, date)} % endif -<%def name="heading()"> +<%block name="heading"> % if len(exps) > 1: Aktuelle Kosten % else: Kosten für ${get_d(exps[0])} % endif -</%def> +</%block> <%def name="get_d(e)"> ${e.date.year}/${e.date.month} </%def> -<%def name="js()"> +<%block name="js"> ${parent.js()} <script type="text/javascript" src=${"/static/js/show.js" | url}></script> -</%def> +</%block> <%def name="detail(name, sum, set, color=None)"> <div class="detail"> |