improved time track table
This commit is contained in:
@@ -184,8 +184,7 @@
|
|||||||
<th>{t('start')}<wbr>…<wbr>{t('end')}</th>
|
<th>{t('start')}<wbr>…<wbr>{t('end')}</th>
|
||||||
<th>{t('duration')}</th>
|
<th>{t('duration')}</th>
|
||||||
<th>{t('subject')}</th>
|
<th>{t('subject')}</th>
|
||||||
<th>{t('projects')}</th>
|
<th>{t('projects')} / {t('tasks')}</th>
|
||||||
<th>{t('tasks')}</th>
|
|
||||||
<th>{t('state')}</th>
|
<th>{t('state')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -221,22 +220,14 @@
|
|||||||
<td class="subject" onclick={e => {detail = time.id}}>
|
<td class="subject" onclick={e => {detail = time.id}}>
|
||||||
{time.subject}
|
{time.subject}
|
||||||
</td>
|
</td>
|
||||||
<td class="projects" onclick={e => {detail = time.id}}>
|
|
||||||
<ul>
|
|
||||||
{#each time.task_ids as tid}
|
|
||||||
{#if tasks[tid] && projects[tasks[tid].project_id]}
|
|
||||||
<li>
|
|
||||||
<a href="#" onclick={e => openProject(tasks[tid].project_id)}>{projects[tasks[tid].project_id].name}</a>
|
|
||||||
</li>
|
|
||||||
{/if}
|
|
||||||
{/each}
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
<td class="tasks" onclick={e => {detail = time.id}}>
|
<td class="tasks" onclick={e => {detail = time.id}}>
|
||||||
<ul>
|
<ul>
|
||||||
{#each time.task_ids as tid}
|
{#each time.task_ids as tid}
|
||||||
{#if tasks[tid]}
|
{#if tasks[tid]}
|
||||||
<li>
|
<li>
|
||||||
|
{#if tasks[tid] && projects[tasks[tid].project_id]}
|
||||||
|
<a href="#" onclick={e => openProject(tasks[tid].project_id)}>{projects[tasks[tid].project_id].name}</a> /
|
||||||
|
{/if}
|
||||||
<a href="#" onclick={e => openTask(tid)}>{tasks[tid].name}</a>
|
<a href="#" onclick={e => openTask(tid)}>{tasks[tid].name}</a>
|
||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user