blob: 270477add4f76b71ec3f8f30ccefcf68ff4941d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>
|