aboutsummaryrefslogtreecommitdiff
path: root/src/templates/summary.html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-11-19 21:38:07 -0600
committerMark Powers <markppowers0@gmail.com>2020-11-19 21:38:07 -0600
commite557fe2dc7bb95b54d78039e56f5fcb4977cc435 (patch)
tree41ad4e2ef9701f0097f1c5cd242233cc607dee67 /src/templates/summary.html
parent3b2fd5d0d684cd78ece02dc4a9583b92ed431850 (diff)
Add rolling averages for categories in summary
Diffstat (limited to 'src/templates/summary.html')
-rw-r--r--src/templates/summary.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/templates/summary.html b/src/templates/summary.html
index f9ae202..15d944d 100644
--- a/src/templates/summary.html
+++ b/src/templates/summary.html
@@ -99,12 +99,18 @@
<table class="table">
<tr>
<th>Category</th>
- <th>Total</th>
+ <th>Last 30 days</th>
+ <th>Last 90 days</th>
+ <th>Last year</th>
+ <th>All-time</th>
</tr>
{{#each categories}}
<tr>
<td>{{this.category}}</td>
- <td>{{this.s}}</td>
+ <td>{{this.d30}}</td>
+ <td>{{this.d90}}</td>
+ <td>{{this.d365}}</td>
+ <td>{{this.all}}</td>
</tr>
{{/each}}
</table>
@@ -114,12 +120,18 @@
<table class="table">
<tr>
<th>Sub-Category</th>
- <th>Total</th>
+ <th>Last 30 days</th>
+ <th>Last 90 days</th>
+ <th>Last year</th>
+ <th>All-time</th>
</tr>
{{#each subcategories}}
<tr>
<td>{{this.subcategory}}</td>
- <td>{{this.s}}</td>
+ <td>{{this.d30}}</td>
+ <td>{{this.d90}}</td>
+ <td>{{this.d365}}</td>
+ <td>{{this.all}}</td>
</tr>
{{/each}}
</table>