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 <p>To balance the books, the following transfers need to be made:</p>
17 % for transfer in c.settle:
19 <td>${transfer[0].username}</td>
20 <td>${transfer[1].username}</td>
21 <td>${transfer[2]}</td>
33 <td class="scope"></td>
34 <th class="scope">Everyone</th>
35 <th class="scope">My Share</th>
37 % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'):
40 % for scope in ('all', 'mine'):
41 <td>${c.totals[period][scope]}</td>
49 <h2>Add a new transaction</h2>
52 <li>${h.link_to('Expenditure for the group', h.url_for(controller='spend', action='index'))}</li>
53 <li>${h.link_to('Transfer between two people', h.url_for(controller='transfer', action='index'))}</li>
60 ${h.link_to('See all history', h.url_for(controller='history', action='index'))}
64 ${self.listExpenditures(c.expenditures)}
68 ${self.listTransfers(c.transfers)}