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