Some refactoring

This commit is contained in:
2020-10-30 23:20:24 +01:00
parent fe5cd04506
commit 24f3d69301
11 changed files with 241 additions and 182 deletions

View File

@ -14,16 +14,18 @@
<body>
<h1 class="title">stl</h1>
<div class="history_list">
{{#each sessions}}
<div class="history_entry">
<span class="history_entry_category">{{this.0.name}}</span>
<ul class="striped_list">
{{#each entries}}
<li class="history_entry">
<span class="history_entry_category">{{this.category.name}}</span>
<span> for </span>
<span class="history_entry_duration">{{pretty_seconds this.duration.secs}}</span>
<span> from </span>
<span class="history_entry_started">{{pretty_datetime this.1.started}}</span>
<span class="history_entry_started">{{pretty_datetime this.session.started}}</span>
<span> to </span>
<span class="history_entry_ended">{{pretty_datetime this.1.ended}}</span>
</div>
<span class="history_entry_ended">{{pretty_datetime this.session.ended}}</span>
</li>
{{/each}}
</div>
</ul>
</body>
</html>