X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fbase.mako;h=d12f45688243b2b7e4d40ce4dd62f2a9a7df49bf;hb=eadf3c3a4e49086b24dd61ead8ea95cdada8b88a;hp=956a4eeb073c8f7618bacccbd3a9b5885d136b18;hpb=a87834811aead8d14d349c2a0fa7af6a4d57001d;p=bluechips.git diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako index 956a4ee..d12f456 100644 --- a/bluechips/templates/base.mako +++ b/bluechips/templates/base.mako @@ -7,7 +7,6 @@ ${h.stylesheet_link('/css/main.css')} -

${self.title()}

<% messages = h.flash.pop_messages() %> % if messages: % endif +
${next.body()}
-<%def name="title()">BlueChips +<%def name="title()">BlueChips +% if c.title != '': + :: ${c.title} +% endif + + +<%def name="formatUser(user)"> + % if user.username == request.environ['REMOTE_USER']: + ${user.name} + % else: + ${user.name} + % endif + <%def name="listExpenditures(es)"> - +
- - - - + + + + + % for e in es: - - - - - - + + + + + + + % endfor -
DateSpenderDescriptionAmountDateSpenderDescriptionAmount
${e.date}${e.spender.name}${e.description}$${h.round_currency(e.amount)}
${e.date}${formatUser(e.spender)}${e.description}${e.amount}
+ <%def name="listTransfers(ts)"> - +
- - - - - + + + + + + % for t in ts: - - - - - - - + + + + + + + + % endfor -
DateFromToDescriptionAmountDateFromToDescriptionAmount
${t.date}${t.debtor.name}${t.creditor.name}${t.description}$${h.round_currency(t.amount)}
${t.date}${formatUser(t.debtor)}${formatUser(t.creditor)}${t.description}${t.amount}
+ + + +<%def name="expenditureIcon()"> +←→ + + +<%def name="transferIcon()"> +$$