X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fbase.mako;h=8403b016f956db65c7c0039e000b4fbdb08fa640;hb=37cc44480ccdc7fb1d6d24ca4c388b6ac755ed0c;hp=5d4bda53b31f5351ae16683d68366b4bbb0dc40a;hpb=9059c6f95453b04f506c913b2030963562c86cf1;p=bluechips.git diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako index 5d4bda5..8403b01 100644 --- a/bluechips/templates/base.mako +++ b/bluechips/templates/base.mako @@ -16,10 +16,78 @@ % endfor % endif +
${next.body()}
-<%def name="title()">BlueChips +<%def name="title()">BlueChips +% if c.title != '': + :: ${c.title} +% endif + + +<%def name="listExpenditures(es)"> + + + + + + + + + % for e in es: + + + + + + + + % endfor +
DateSpenderDescriptionAmount
${e.date}${e.spender.name}${e.description}${e.amount}${h.link_to('Edit', h.url_for(controller='spend', + action='edit', + id=e.id))}
+ + +<%def name="listTransfers(ts)"> + + + + + + + + + + % for t in ts: + + + + + + + + + % endfor +
DateFromToDescriptionAmount
${t.date}${t.debtor.name}${t.creditor.name}${t.description}${t.amount}${h.link_to('Edit', h.url_for(controller='transfer', + action='edit', + id=t.id))}
+