|
@ -5,16 +5,16 @@ |
|
|
|
|
|
|
|
|
import currentTime from "$lib/stores/currentTime"; |
|
|
import currentTime from "$lib/stores/currentTime"; |
|
|
|
|
|
|
|
|
import Entry from "../layout/Entry.svelte"; |
|
|
|
|
|
|
|
|
import CardEntry from "../layout/CardEntry.svelte"; |
|
|
import EntryDescription from "../layout/EntryDescription.svelte"; |
|
|
import EntryDescription from "../layout/EntryDescription.svelte"; |
|
|
import EntryName from "../layout/EntryName.svelte"; |
|
|
import EntryName from "../layout/EntryName.svelte"; |
|
|
import EntryProgress from "../layout/EntryProgress.svelte"; |
|
|
import EntryProgress from "../layout/EntryProgress.svelte"; |
|
|
import EntryProgressRow from "../layout/EntryProgressRow.svelte"; |
|
|
import EntryProgressRow from "../layout/EntryProgressRow.svelte"; |
|
|
import ItemLink from "./ItemLink.svelte"; |
|
|
import ItemLink from "./ItemLink.svelte"; |
|
|
import RequirementLink from "./RequirementLink.svelte"; |
|
|
import RequirementLink from "./RequirementLink.svelte"; |
|
|
import EntryButton from "../layout/EntryButton.svelte"; |
|
|
|
|
|
import Icon from "../layout/Icon.svelte"; |
|
|
|
|
|
import Status from "$lib/models/status"; |
|
|
|
|
|
|
|
|
import EntryButton from "../layout/EntryButton.svelte"; |
|
|
|
|
|
import Icon from "../layout/Icon.svelte"; |
|
|
|
|
|
import Status from "$lib/models/status"; |
|
|
|
|
|
|
|
|
export let sprint: Sprint |
|
|
export let sprint: Sprint |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ import Status from "$lib/models/status"; |
|
|
|
|
|
|
|
|
$: { |
|
|
$: { |
|
|
if (sprint.items != null) { |
|
|
if (sprint.items != null) { |
|
|
itemsAcquired = sprint.items.filter(i => !!i.acquireDate).length; |
|
|
|
|
|
|
|
|
itemsAcquired = sprint.items.filter(i => !!i.acquireTime).length; |
|
|
itemsRequired = sprint.items.length; |
|
|
itemsRequired = sprint.items.length; |
|
|
} else { |
|
|
} else { |
|
|
itemsAcquired = 0; |
|
|
itemsAcquired = 0; |
|
@ -76,7 +76,7 @@ import Status from "$lib/models/status"; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<a href="/{sprint.scope.id}/sprints?sprint={sprint.id}"> |
|
|
<a href="/{sprint.scope.id}/sprints?sprint={sprint.id}"> |
|
|
<Entry> |
|
|
|
|
|
|
|
|
<CardEntry> |
|
|
{#if sprint.kind === "stats"} |
|
|
{#if sprint.kind === "stats"} |
|
|
<EntryButton> |
|
|
<EntryButton> |
|
|
<Icon name="plus" /> |
|
|
<Icon name="plus" /> |
|
@ -114,7 +114,7 @@ import Status from "$lib/models/status"; |
|
|
{/if} |
|
|
{/if} |
|
|
</EntryProgressRow> |
|
|
</EntryProgressRow> |
|
|
{#each sprint.items as item (item.id)} |
|
|
{#each sprint.items as item (item.id)} |
|
|
{#if !item.acquireDate} |
|
|
|
|
|
|
|
|
{#if !item.acquireTime} |
|
|
<ItemLink compact item={item} /> |
|
|
<ItemLink compact item={item} /> |
|
|
{/if} |
|
|
{/if} |
|
|
{/each} |
|
|
{/each} |
|
@ -123,7 +123,7 @@ import Status from "$lib/models/status"; |
|
|
<RequirementLink compact boat={boat} requirement={requirement} /> |
|
|
<RequirementLink compact boat={boat} requirement={requirement} /> |
|
|
{/if} |
|
|
{/if} |
|
|
{/each} |
|
|
{/each} |
|
|
</Entry> |
|
|
|
|
|
|
|
|
</CardEntry> |
|
|
</a> |
|
|
</a> |
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|