diff --git a/components/frontend/src/routes/(app)/my/hackathon/[id]/participants/[participantId]/+page.svelte b/components/frontend/src/routes/(app)/my/hackathon/[id]/participants/[participantId]/+page.svelte index 8981f938..f331fd29 100644 --- a/components/frontend/src/routes/(app)/my/hackathon/[id]/participants/[participantId]/+page.svelte +++ b/components/frontend/src/routes/(app)/my/hackathon/[id]/participants/[participantId]/+page.svelte @@ -35,7 +35,18 @@ -
- - ← Back to participants - - -
-
-
- {initials} -
+
+
+ + ← Back to participants + -
-

{data.participant.name}

-

@{data.participant.username}

-
- - {data.participant.roleLabel} - {#if joined} - Joined {joined} - {/if} +
+
+
+ {initials} +
+ +
+

{data.participant.name}

+

@{data.participant.username}

+
+ + {data.participant.roleLabel} + {#if joined} + Joined {joined} + {/if} +
-
- {#if answersSection} -
-

- {data.answerScope === 'mine' ? 'Registration answers' : 'Shared answers'} -

- - {#if data.answerScope === 'mine'} -

- The hackathon's organizers see all of these. The ones marked - Shared - are also visible to everyone in the hackathon. Change them on the - +

+ {data.answerScope === 'mine' ? 'Registration answers' : 'Shared answers'} +

+ + {#if data.answers.length === 0} + +

+ You have not answered the registration form. +

+ {:else} + +
- registration form. -

- {:else} -

- Answers this event shares with everyone taking part. The rest of - {data.participant.name}'s form is between them and the organizers. + {#each data.answers as answer (answer.questionId)} + +

+ {answer.label} +
+
+ + {#if typeof answer.value === 'boolean'} + {answer.value ? 'Yes' : 'No'} + {:else} + {answer.value} + {/if} + + + {#if answer.publicAnswers && data.answerScope === 'mine'} + Shared + {/if} +
+ {/each} +
+ {/if} + + +

+ {#if data.answerScope === 'mine'} + The hackathon's organizers see all of these. The ones marked + Shared + are also visible to everyone in the hackathon. Change them on the + + registration form. + {:else} + Answers this event shares with everyone taking part. The rest of + {data.participant.name}'s form is between them and the organizers. + {/if}

- {/if} + + {/if} - {#if data.answers.length === 0} - -

- You have not answered the registration form. +

+

Teams

+ + {#if !data.teamsPublished} +

+ Team assignments have not been published in this hackathon yet. +

+ {:else if data.teamsFailed} +

+ Teams could not be loaded. Reload the page to try again. +

+ {:else if data.teams.length === 0} +

+ {data.participant.name} is not on a team in this hackathon yet.

{:else} - -
- {#each data.answers as answer (answer.questionId)} -
-
{answer.label}
-
- {#if typeof answer.value === 'boolean'} - {answer.value ? 'Yes' : 'No'} - {:else} - {answer.value} - {/if} -
- - {#if answer.publicAnswers && data.answerScope === 'mine'} - Shared + + + {/each} -
+
{/if} -
- {/if} - -
-

Teams

- - {#if !data.teamsPublished} -

- Team assignments have not been published in this hackathon yet. -

- {:else if data.teamsFailed} -

- Teams could not be loaded. Reload the page to try again. -

- {:else if data.teams.length === 0} -

- {data.participant.name} is not on a team in this hackathon yet. -

- {:else} - {#each data.teams as team (team.id)} - - {team.name} - {#if team.projectTitle} - {team.projectTitle} - {/if} - - {/each} - {/if} +