diff --git a/src/base/projects/Project.svelte b/src/base/projects/Project.svelte new file mode 100644 index 000000000..4290a4d12 --- /dev/null +++ b/src/base/projects/Project.svelte @@ -0,0 +1,129 @@ + + + + + + {pageTitle} + + +
+
+ {#if source.profile} + + + + / + {/if} + {source.project.name} + {#if peer} + / {formatSeedId(peer)} + {/if} +
+
{source.urn}
+
{source.project.description}
+
+ + +{#await proj.getRoot(source.project, null, peer, source.seed.api) then { tree, branches, commit }} +
+ +{:catch err} +
+
+ + API request to {err.url} failed +
+
+{/await} diff --git a/src/base/projects/View.svelte b/src/base/projects/View.svelte index 6312bac1b..403571302 100644 --- a/src/base/projects/View.svelte +++ b/src/base/projects/View.svelte @@ -1,49 +1,35 @@ - - {pageTitle} - -
- {#await getProject} + {#await getProject()}
- {:then result} -
-
- {#if result.profile} - - - - / - {/if} - {result.project.name} - {#if peer} - / {formatSeedId(peer)} - {/if} -
-
{result.urn}
-
{result.project.description}
-
- - - {#await proj.getRoot(result.project, null, peer, result.seed.api) then { tree, branches, commit }} -
- - {:catch err} -
-
- - API request to {err.url} failed -
-
- {/await} + {:then source} + {:catch} {/await}