diff --git a/dashboard/src/lib/group/CardView.svelte b/dashboard/src/lib/group/CardView.svelte new file mode 100644 index 00000000..c30edea9 --- /dev/null +++ b/dashboard/src/lib/group/CardView.svelte @@ -0,0 +1,230 @@ + + + + + +
+ +
+ {@html htmlName} ({group.id}) +
+
+
+ {#if view === "card"} + {if (event.key === "Enter") {avatarOpen = true}}} on:click={toggleAvatarModal} class="rounded avatar mx-auto w-100 h-auto mb-2" src={icon_url_resized} alt={altText}/> + +
+ Member avatar +
+
+ {#if group.display_name} +
{@html htmlDisplayName}
+ {/if} +
+
+ {@html htmlDesc} +
+
+ + + {#if !isPublic}{/if} + + + {#if !isPublic && isDash}{/if} + + + + + {#if !isPublic}Edit group{/if} + {#if !isPublic && isDash}View members{/if} + View page + + {:else if view === "groups"} + {#if memberList.length > 0} + Members +
+ + {#each memberList as member, index (member.id)} + {@html toHTML(member.name)} ({member.id}) + {/each} + + {:else} + This group has no members. + {/if} +
+ + + + + + + + + + + Edit group + Back to info + View page + + {:else if view === "edit"} + + + + +
+ +