]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Display all totals with currency formatting
authorEvan Broder <broder@mit.edu>
Wed, 16 Jul 2008 08:18:04 +0000 (08:18 +0000)
committerEvan Broder <broder@mit.edu>
Wed, 16 Jul 2008 08:18:04 +0000 (08:18 +0000)
bluechips/templates/status/index.mako

index b42b23a3437fa9fc7ee982489318c3447dca682e..9291b693069180c164d41c7343ed53b275338c93 100644 (file)
 <table>
     <tr>
         <td>Total</td>
-        <td>$${c.total}</td>
+        <td>$${h.round_currency(c.total)}</td>
     </tr>
     <tr>
         <td>Past year</td>
-        <td>$${c.year_total}</td>
+        <td>$${h.round_currency(c.year_total)}</td>
     </tr>
     <tr>
         <td>Year to date</td>
-        <td>$${c.this_year_total}</td>
+        <td>$${h.round_currency(c.this_year_total)}</td>
     </tr>
     <tr>
         <td>Month to date</td>
-        <td>$${c.this_month_total}</td>
+        <td>$${h.round_currency(c.this_month_total)}</td>
     </tr>
     <tr>
         <td>Last month</td>
-        <td>$${c.last_month_total}</td>
+        <td>$${h.round_currency(c.last_month_total)}</td>
     </tr>
 </table>