diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 16:07:19 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 16:07:19 +0200 |
commit | fc2b648989cd5afaff3c563dea739e90c19be331 (patch) | |
tree | 6163e99ad09f42423b0899ce74c1918632efedb1 /templates/show.mako | |
parent | 4b4905db5f4123a88dca9f0164a3a35679a9dc13 (diff) | |
download | kosten-fc2b648989cd5afaff3c563dea739e90c19be331.tar.gz kosten-fc2b648989cd5afaff3c563dea739e90c19be331.tar.bz2 kosten-fc2b648989cd5afaff3c563dea739e90c19be331.zip |
First working 'Show'
Diffstat (limited to 'templates/show.mako')
-rw-r--r-- | templates/show.mako | 25 |
1 files changed, 25 insertions, 0 deletions
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: + <h2>${get_d(e)}</h2> + % endif + % for c in e.catexps: + <strong>${c.cat.name}</strong> ${c.expense}<br> + % endfor + <strong>Constant:</strong> ${e.const}<br> + <strong>In Summa:</strong> ${e.sum}<br><br> +% endfor + +<%def name="heading()"> + % if len(exps) > 1: + Current expenses + % else: + Expenses for ${get_d(exps[0])} + % endif + +</%def> + +<%def name="get_d(e)"> + ${e.date.year}/${e.date.month} +</%def> |