- <tr>
- <td>Month to date</td>
- <td>$${h.round_currency(c.this_month_total)}</td>
- </tr>
- <tr>
- <td>Last month</td>
- <td>$${h.round_currency(c.last_month_total)}</td>
- </tr>
-</table>
-
-<h2>Add a new transaction</h2>
-
-<ul>
- <li>${h.link_to('Expenditure for the group', h.url_for(controller='spend', action='index'))}</li>
- <li>${h.link_to('Transfer between two people', h.url_for(controller='transfer', action='index'))}</li>
-</ul>
-
-<h2>Your History</h2>
+ % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'):
+ <tr>
+ <th>${period}</th>
+ % for scope in ('all', 'mine'):
+ <td>${c.totals[period][scope]}</td>
+ % endfor
+ </tr>
+ % endfor
+ </table>
+</div>