populating estimated times on task list, added minimum styling
This commit is contained in:
@@ -40,13 +40,13 @@
|
|||||||
onMount(loadChildren);
|
onMount(loadChildren);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<li>
|
<li class="task {task.status.name.toLowerCase()}">
|
||||||
<span onclick={openTask} class={task.status.name.toLowerCase()}>
|
<span class="name" onclick={openTask}>
|
||||||
{task.name}
|
{task.name}
|
||||||
{#if task.estimated_time}
|
|
||||||
<span class="error">({+task.estimated_time} h)</span>
|
|
||||||
{/if}
|
|
||||||
</span>
|
</span>
|
||||||
|
{#if task.estimated_time}
|
||||||
|
<span class="estimated_time">({+task.estimated_time} h)</span>
|
||||||
|
{/if}
|
||||||
{#if error}
|
{#if error}
|
||||||
<span class="error">{error}</span>
|
<span class="error">{error}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -44,16 +44,16 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if project}
|
{#if project}
|
||||||
<table>
|
<table class="project">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('project')}</th>
|
<th>{t('project')}</th>
|
||||||
<td>{project.name}</td>
|
<td class="name">{project.name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{#if project.company}
|
{#if project.company}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('company')}</th>
|
<th>{t('company')}</th>
|
||||||
<td>{project.company.name}</td>
|
<td class="company">{project.company.name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
@@ -66,17 +66,17 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('description')}</th>
|
<th>{t('description')}</th>
|
||||||
<td>{@html project.description.rendered}</td>
|
<td class="description">{@html project.description.rendered}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{#if estimated_time.sum}
|
{#if estimated_time.sum}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('estimated_time')}</th>
|
<th>{t('estimated_time')}</th>
|
||||||
<td>{estimated_time.sum} h</td>
|
<td class="estimated_time">{estimated_time.sum} h</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('tasks')}</th>
|
<th>{t('tasks')}</th>
|
||||||
<td>
|
<td class="tasks">
|
||||||
{#if tasks}
|
{#if tasks}
|
||||||
<TaskList {tasks} bind:estimated_time={estimated_time} />
|
<TaskList {tasks} bind:estimated_time={estimated_time} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -75,4 +75,17 @@ td, tr{
|
|||||||
.position_selector{
|
.position_selector{
|
||||||
background: rgba(0,0,0,0.7);
|
background: rgba(0,0,0,0.7);
|
||||||
backdrop-filter: blur(3px);
|
backdrop-filter: blur(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.task.started > .name {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
.task.pending > .name {
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
.task.complete > .name {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
.task.complete > .name:before {
|
||||||
|
content: "✓ ";
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user