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 @@ -
@{data.participant.username}
-@{data.participant.username}
+
- The hackathon's organizers see all of these. The ones marked
- Shared
- are also visible to everyone in the hackathon. Change them on the
-
+
+ You have not answered the registration form.
+
+ {data.answerScope === 'mine' ? 'Registration answers' : 'Shared answers'}
+
+
+ {#if data.answers.length === 0}
+
+
- registration form
.
-
- 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)} + +
+ {#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.
+
+ Team assignments have not been published in this hackathon yet.
+
+ Teams could not be loaded. Reload the page to try again.
+
+ {data.participant.name} is not on a team in this hackathon yet.
Teams
+
+ {#if !data.teamsPublished}
+
- {#each data.answers as answer (answer.questionId)}
-
- 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} +