X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bluechips%2Ftemplates%2Fbase.mako;h=43db6e4246c1871b543fc69aa83ca5a6c66c3618;hb=fed6d11d2cbd6d617d18bc01a78196865da4155b;hp=49476f16bbb8d8cda609071b3a298b24874e91fb;hpb=ed8863d32a4d626a02bf1c5c930253003068ea3f;p=bluechips.git
diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako
index 49476f1..43db6e4 100644
--- a/bluechips/templates/base.mako
+++ b/bluechips/templates/base.mako
@@ -4,9 +4,18 @@
${next.body()}
@@ -69,7 +84,7 @@
% endif
%def>
-<%def name="listExpenditures(es)">
+<%def name="listExpenditures(es, total=None, share=None)">
Date |
@@ -95,6 +110,15 @@
${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))} |
% endfor
+ % if total is not None and share is not None:
+
+ |
+ ${total} |
+ ${share} |
+ |
+
+
+ % endif
%def>
@@ -127,6 +151,14 @@
%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>