implemented time tracking by clicking symbol at task.

next: stop running time, display running time in header

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-26 21:13:55 +02:00
parent 1ddb6af280
commit 72375b82cf
10 changed files with 79 additions and 59 deletions

View File

@@ -30,28 +30,29 @@
<span class="error">{error}</span>
{/if}
{#if times}
<table>
<table class="timetracks">
<thead>
</thead>
<tbody>
{#each Object.entries(times) as [tid,time]}
<tr>
<td>
{time.start_time}{time.end_time}
<td class="start_end">
{time.start_time}{#if time.end_time}{time.end_time}{/if}
</td>
<td>
{time.duration}&nbsp;h
<td class="duration">{#if time.duration}
{time.duration.toFixed(3)}&nbsp;h
{/if}
</td>
<td>
<td class="subject">
{time.subject}
</td>
<td>
<td class="tasks">
{#each Object.entries(time.tasks) as [tid,task]}
<a href="#" onclick={e => openTask(tid)}>{task}</a>
{/each}
</td>
<td>
<td class="state">
{t("state_"+time.state.name.toLowerCase())}
</td>
</tr>