-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): present results of main draft before lottery phase begins
- Loading branch information
Showing
7 changed files
with
113 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts"> | ||
import { Avatar } from '@skeletonlabs/skeleton'; | ||
import type { QueriedFaculty } from '$lib/server/database'; | ||
// eslint-disable-next-line init-declarations | ||
export let user: QueriedFaculty[number]; | ||
$: ({ email, given_name, family_name, avatar, lab_name } = user); | ||
</script> | ||
|
||
<a href="mailto:{email}"> | ||
<Avatar src={avatar} width="w-14" /> | ||
<span class="flex flex-col"> | ||
<strong><span class="uppercase">{family_name}</span>, {given_name}</strong> | ||
{#if lab_name !== null} | ||
<span class="text-sm opacity-50">{lab_name}</span> | ||
{/if} | ||
<span class="text-xs opacity-50">{email}</span> | ||
</span> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts"> | ||
import { Avatar } from '@skeletonlabs/skeleton'; | ||
import type { TaggedStudentsWithLabs } from '$lib/server/database'; | ||
// eslint-disable-next-line init-declarations | ||
export let user: TaggedStudentsWithLabs[number]; | ||
$: ({ email, given_name, family_name, avatar, student_number, labs, lab_id } = user); | ||
</script> | ||
|
||
<a href="mailto:{email}" class="grid w-full grid-cols-[auto_1fr] items-center gap-1 p-4"> | ||
<Avatar src={avatar} width="w-20" /> | ||
<div class="flex flex-col"> | ||
<strong><span class="uppercase">{family_name}</span>, {given_name}</strong> | ||
{#if student_number !== null} | ||
<span class="text-sm opacity-50">{student_number}</span> | ||
{/if} | ||
<span class="text-xs opacity-50">{email}</span> | ||
<div class="space-x-1"> | ||
{#if lab_id === null} | ||
{#each labs as lab (lab)} | ||
<span class="variant-ghost-tertiary badge text-xs">{lab}</span> | ||
{/each} | ||
{:else} | ||
<span class="variant-ghost-primary badge text-xs">{lab_id}</span> | ||
{/if} | ||
</div> | ||
</div> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.