Fix formatting of /stats

This commit is contained in:
2020-11-12 14:43:44 +01:00
parent 70c354fa6d
commit af434f0bc0
2 changed files with 12 additions and 7 deletions

View File

@ -19,6 +19,11 @@
{{#each categories_stats}}
{{#if this.last_session_start}}
<div class="hline"></div>
<h2>
<span>Kategori:</span>
<span>{{this.category.name}}</span>
<span style="color: {{this.category.color}};">●</span>
</h2>
<h2>
<span>Senaste session:</span>
<span class="history_entry_started">{{pretty_datetime this.last_session_start}}</span>
@ -26,11 +31,9 @@
<span class="history_entry_duration">{{pretty_seconds this.secs_last_session}}</span>
</h2>
<h2>
<span>Denna veckan:</span>
<span>Senaste veckan:</span>
<span class="history_entry_duration">{{pretty_seconds this.secs_last_week}}</span>
</h2>
<h2>
<span>Denna månaden:</span>
<span>Senaste månaden:</span>
<span class="history_entry_duration">{{pretty_seconds this.secs_last_month}}</span>
</h2>
<h2>Andel per timme:</h2>