← All tasks
{#if data.task}
{data.task.name}
{data.task.currentPoints}/{data.task.totalPoints} points
Topics
{#each data.task.tasksToTopics as relation (relation.topicId)} {#if relation.topic}
{relation.topic.name}
{#if data.editable}
×
{/if}
{/if} {/each}
{#if data.editable}
Add existing topic
Choose a topic
{#each data.topics as topic (topic.id)}
{topic.name}
{/each}
Add
New topic
Create
{/if}
Progress
Current
Total
{#if data.editable}
Save progress
{/if}
Notes
Notes
{#if data.editable}
Save notes
{/if}
{:else}
Task not found.
{/if}