59 lines
1.8 KiB
Handlebars
59 lines
1.8 KiB
Handlebars
<div>
|
|
<div class="hline"></div>
|
|
<h2>
|
|
<span>Kategori:</span>
|
|
<a href="/stats/{{category_id}}">{{category.name}}</a>
|
|
<span style="color: {{category.color}};">●</span>
|
|
</h2>
|
|
<h2>
|
|
<span>Senaste session:</span>
|
|
<span class="history_entry_started">{{pretty_datetime last_session_start}}</span>
|
|
<span>i</span>
|
|
<span class="history_entry_duration">{{pretty_seconds secs_last_session}}</span>
|
|
</h2>
|
|
<h2>
|
|
<span>Senaste veckan:</span>
|
|
<span class="history_entry_duration">{{pretty_seconds secs_last_week}}</span>
|
|
<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.weeks}}
|
|
<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 tooltip" style="flex-grow: {{this.1}};">
|
|
<span class="tooltiptext">{{this.1}}%</span>
|
|
</div>
|
|
<div class="chart_histogram_col_label">{{this.0}}</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|