diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/expected.html | 12 | ||||
-rw-r--r-- | src/templates/summary.html | 30 |
2 files changed, 42 insertions, 0 deletions
diff --git a/src/templates/expected.html b/src/templates/expected.html index 15b9d7c..99bf6fd 100644 --- a/src/templates/expected.html +++ b/src/templates/expected.html @@ -33,6 +33,18 @@ </tr> {{/each}} </table> + <table> + <tr> + <td>Weekly:</td> + <td>{{week}}</td> + </tr><tr> + <td>Monthly:</td> + <td>{{month}}</td> + </tr><tr> + <td>Yearly:</td> + <td>{{year}}</td> + </tr> + </table> </body> </html> diff --git a/src/templates/summary.html b/src/templates/summary.html index d78182a..bdc2f44 100644 --- a/src/templates/summary.html +++ b/src/templates/summary.html @@ -99,6 +99,36 @@ </tr> </table> </div> + <div class="summary-panel"> + <h2>Categories</h2> + <table class="table"> + <tr> + <th>Category</th> + <th>Total</th> + </tr> + {{#each categories}} + <tr> + <td>{{this.category}}</td> + <td>{{this.s}}</td> + </tr> + {{/each}} + </table> + </div> + <div class="summary-panel"> + <h2>Sub-Categories</h2> + <table class="table"> + <tr> + <th>Sub-Category</th> + <th>Total</th> + </tr> + {{#each subcategories}} + <tr> + <td>{{this.subcategory}}</td> + <td>{{this.s}}</td> + </tr> + {{/each}} + </table> + </div> </body> </html>
\ No newline at end of file |