From e2998a1fa81e134a00b0ea3e747b97421713aab1 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 5 Sep 2022 00:09:34 +0200 Subject: [PATCH] work: Don't show useless infos --- ui/src/components/WorkRepository.svelte | 68 +++++++++++++------------ ui/src/routes/works/[wid]/index.svelte | 3 +- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/ui/src/components/WorkRepository.svelte b/ui/src/components/WorkRepository.svelte index 91aa3a4..5b62ec2 100644 --- a/ui/src/components/WorkRepository.svelte +++ b/ui/src/components/WorkRepository.svelte @@ -76,37 +76,39 @@ {/each} {:catch} -

- Voici la liste des dépôts reconnus : -

-
- {#await remote_repos} -
-
- Récupération de vos dépôts GitLab … -
- {:then rrepos} - - - {/await} - - -
+ {#if !readonly} +

+ Voici la liste des dépôts reconnus : +

+
+ {#await remote_repos} +
+
+ Récupération de vos dépôts GitLab … +
+ {:then rrepos} + + + {/await} + + +
+ {/if} {/await} diff --git a/ui/src/routes/works/[wid]/index.svelte b/ui/src/routes/works/[wid]/index.svelte index c44cf0d..2aaec81 100644 --- a/ui/src/routes/works/[wid]/index.svelte +++ b/ui/src/routes/works/[wid]/index.svelte @@ -96,9 +96,10 @@
Date de fin
+ {#if w.description}
- {@html w.description} + {/if}