1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <title>${self.title()}</title>
7 ${h.stylesheet_link('/css/main.css')}
10 <% messages = h.flash.pop_messages() %>
12 <ul id="flash-messages">
13 % for message in messages:
18 <div id="nav" class="block">
31 <a href="${h.url_for(controller='status', action='index', id=None)}">
32 <img src="/icons/dashboard.png" alt="">
33 <span>Dashboard</span>
37 <a href="${h.url_for(controller='spend', action='index', id=None)}">
38 <img src="/icons/spend.png" alt="">
43 <a href="${h.url_for(controller='transfer', action='index', id=None)}">
44 <img src="/icons/transfer.png" alt="">
49 <a href="${h.url_for(controller='history', action='index', id=None)}">
50 <img src="/icons/history.png" alt="">
63 <%def name="title()">BlueChips
69 <%def name="formatUser(user)">
70 % if user.username == request.environ['REMOTE_USER']:
71 <strong>${user.name}</strong>
77 <%def name="listExpenditures(es)">
80 <th class="date">Date</th>
81 <th class="user">Spender</th>
82 <th class="description">Description</th>
83 <th class="amount">Amount</th>
84 <th class="editlink"></th>
88 <td class="date">${e.date}</td>
89 <td class="user">${formatUser(e.spender)}</td>
90 <td class="description">${e.description}</td>
91 <td class="amount">${e.amount}</td>
92 <td class="editlink">${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))}</td>
98 <%def name="listTransfers(ts)">
101 <th class="date">Date</th>
102 <th class="user">From</th>
103 <th class="user">To</th>
104 <th class="description">Description</th>
105 <th class="amount">Amount</th>
106 <th class="editlink"></th>
110 <td class="date">${t.date}</td>
111 <td class="user">${formatUser(t.debtor)}</td>
112 <td class="user">${formatUser(t.creditor)}</td>
113 <td class="description">${t.description}</td>
114 <td class="amount">${t.amount}</td>
115 <td class="editlink">${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))}</td>
121 <%def name="expenditureIcon()">
122 ←<span class="dollarsign">→
125 <%def name="transferIcon()">
126 <span class="dollarsign">$</span>→<span class="dollarsign">$</span>