1 <%inherit file="/base.mako"/>
4 <h2>Settling Transfers</h2>
6 % if len(c.settle) == 0:
7 <p>No need! The books are balanced!</p>
9 <div class='pie'>${h.image(h.url_for(controller='graph', action='pie'), 'I like pie.')}</div>
10 <p>To balance the books, the following transfers need to be made:</p>
18 % for transfer in c.settle:
20 <td>${transfer[0].name}</td>
21 <td>${transfer[1].name}</td>
22 <td class="amount">${transfer[2]}</td>
34 <th class="amount">${abs(c.net)}</th>
46 <td class="scope"></td>
47 <th class="scope">Everyone</th>
48 <th class="scope">My Share</th>
50 % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'):
53 % for scope in ('all', 'mine'):
54 <td>${c.totals[period][scope]}</td>
64 <span class="see-all">
65 ${h.link_to('See all history', h.url_for(controller='history', action='index'))}
71 ${self.listExpenditures(c.expenditures)}
75 ${self.listTransfers(c.transfers)}