X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fbase.mako;h=43db6e4246c1871b543fc69aa83ca5a6c66c3618;hb=fed6d11d2cbd6d617d18bc01a78196865da4155b;hp=f50824c5308b049589e5549f4c460684f20d9be9;hpb=6b4c44a04f687013ab73055c1fa1a036c43ad150;p=bluechips.git
diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako
index f50824c..43db6e4 100644
--- a/bluechips/templates/base.mako
+++ b/bluechips/templates/base.mako
@@ -4,11 +4,11 @@
${next.body()}
@@ -84,7 +84,7 @@
% endif
%def>
-<%def name="listExpenditures(es)">
+<%def name="listExpenditures(es, total=None, share=None)">
Date |
@@ -93,7 +93,6 @@
Amount |
My Share |
|
- |
% for e in es:
<%
@@ -109,9 +108,17 @@
${e.amount} |
${e.share(request.environ['user'])} |
${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))} |
- ${h.link_to('Delete', h.url_for(controller='spend', action='delete', id=e.id))} |
% endfor
+ % if total is not None and share is not None:
+
+ |
+ ${total} |
+ ${share} |
+ |
+
+
+ % endif
%def>
@@ -124,7 +131,6 @@
Description |
Amount |
|
-
|
% for t in ts:
<%
@@ -140,12 +146,19 @@
${t.description} |
${t.amount} |
${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))} |
-
${h.link_to('Delete', h.url_for(controller='transfer', action='delete', id=t.id))} |
% endfor
%def>
+<%def name="listTags()">
+<%
+x = ',\n'.join([h.link_to(tag.name, h.url_for(controller='history', action='tag', id=tag.id)) for tag in c.tags])
+%>
+${x|n}
+%def>
+
+
<%def name="expenditureIcon()">
←
→
%def>