Display category children & Add calendar stats
This commit is contained in:
@ -17,14 +17,39 @@
|
||||
<span>Senaste månaden:</span>
|
||||
<span class="history_entry_duration">{{pretty_seconds secs_last_month}}</span>
|
||||
</h2>
|
||||
<h2>Senaste veckorna:</h2>
|
||||
<div class="cal">
|
||||
{{#each calendar.days}}
|
||||
<div class="cal_col">
|
||||
{{#each this}}
|
||||
{{#if this}}
|
||||
<div class="cal_day tooltip
|
||||
{{#if this.border_top}}cal_day_border_top{{/if}}
|
||||
{{#if this.border_left}}cal_day_border_left{{/if}}
|
||||
{{#if this.border_right}}cal_day_border_right{{/if}}
|
||||
{{#if this.border_bottom}}cal_day_border_bottom{{/if}}
|
||||
{{#if this.duration}}cal_day_non_empty{{/if}}"
|
||||
style="opacity: {{this.weight}}">
|
||||
{{#if this.duration}}
|
||||
{{pretty_compact_seconds this.duration}}
|
||||
<span class="tooltiptext">{{pretty_seconds this.duration}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="cal_day_missing"></div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<h2>Andel per timme:</h2>
|
||||
<div class="chart_histogram">
|
||||
<div class="chart_histogram_legend">{{bars_max}}%</div>
|
||||
{{#each bars}}
|
||||
<div class="chart_histogram_col">
|
||||
<div style="flex-grow: {{this.2}};"></div>
|
||||
<div class="chart_histogram_col_line chart_col_tooltip" style="flex-grow: {{this.1}};">
|
||||
<span class="chart_col_tooltiptext">{{this.1}}%</span>
|
||||
<div class="chart_histogram_col_line tooltip" style="flex-grow: {{this.1}};">
|
||||
<span class="tooltiptext">{{this.1}}%</span>
|
||||
</div>
|
||||
<div class="chart_histogram_col_label">{{this.0}}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user