Some refactoring
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user