% endif
</%def>
-<%def name="listExpenditures(es)">
+<%def name="listExpenditures(es, total=None, share=None)">
<table class="list">
<tr>
<th class="date">Date</th>
<th class="amount">Amount</th>
<th class="share">My Share</th>
<th class="editlink"></th>
- <th class="deletelink"></th>
</tr>
% for e in es:
<%
<td class="amount">${e.amount}</td>
<td class="share">${e.share(request.environ['user'])}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))}</td>
- <td class="deletelink">${h.link_to('Delete', h.url_for(controller='spend', action='delete', id=e.id))}</td>
</tr>
% endfor
+ % if total is not None and share is not None:
+ <tr class="user-involved">
+ <td class="total" colspan=3></td>
+ <td class="total">${total}</td>
+ <td class="total">${share}</td>
+ <td class="total"></td>
+ </tr>
+
+ % endif
</table>
</%def>
<th class="description">Description</th>
<th class="amount">Amount</th>
<th class="editlink"></th>
- <th class="deletelink"></th>
</tr>
% for t in ts:
<%
<td class="description">${t.description}</td>
<td class="amount">${t.amount}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))}</td>
- <td class="deletelink">${h.link_to('Delete', h.url_for(controller='transfer', action='delete', id=t.id))}</td>
</tr>
% endfor
</table>
</%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()">
←<span class="dollarsign">→
</%def>