From fc2b648989cd5afaff3c563dea739e90c19be331 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 4 May 2010 16:07:19 +0200 Subject: First working 'Show' --- templates/show.mako | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 templates/show.mako (limited to 'templates/show.mako') diff --git a/templates/show.mako b/templates/show.mako new file mode 100644 index 0000000..270477a --- /dev/null +++ b/templates/show.mako @@ -0,0 +1,25 @@ +<%inherit file="/page.mako" /> + +% for e in exps: + % if len(exps) > 1: +

${get_d(e)}

+ % endif + % for c in e.catexps: + ${c.cat.name} ${c.expense}
+ % endfor + Constant: ${e.const}
+ In Summa: ${e.sum}

+% endfor + +<%def name="heading()"> + % if len(exps) > 1: + Current expenses + % else: + Expenses for ${get_d(exps[0])} + % endif + + + +<%def name="get_d(e)"> + ${e.date.year}/${e.date.month} + -- cgit v1.2.3-70-g09d2