59 lines
1.5 KiB
Svelte
59 lines
1.5 KiB
Svelte
<script>
|
|
import {
|
|
Alert,
|
|
Badge,
|
|
Card,
|
|
CardHeader,
|
|
Col,
|
|
Container,
|
|
Icon,
|
|
Row,
|
|
} from 'sveltestrap';
|
|
|
|
import ScoreGrid from '$lib/components/ScoreGrid.svelte';
|
|
import TeamChangeName from '$lib/components/TeamChangeName.svelte';
|
|
import TeamChangePassword from '$lib/components/TeamChangePassword.svelte';
|
|
import TeamMembers from '$lib/components/TeamMembers.svelte';
|
|
|
|
import { my } from '$lib/stores/my.js';
|
|
import { settings } from '$lib/stores/settings.js';
|
|
</script>
|
|
|
|
<Container class="my-3">
|
|
<h1 class="text-dark">
|
|
Votre équipe
|
|
{#if $my}
|
|
<small class="text-muted">{$my.name}</small>
|
|
{/if}
|
|
</h1>
|
|
|
|
{#if $my}
|
|
<Row>
|
|
<Col md>
|
|
<TeamMembers members={$my.members} />
|
|
{#if !$settings.denyNameChange}
|
|
<TeamChangeName />
|
|
{/if}
|
|
{#if $settings.acceptNewIssue}
|
|
<TeamChangePassword />
|
|
{/if}
|
|
</Col>
|
|
<Col md>
|
|
<Card>
|
|
<CardHeader>
|
|
<Icon name="table" />
|
|
Détail du score
|
|
</CardHeader>
|
|
<ScoreGrid />
|
|
</Card>
|
|
<!--BrowserNotify /-->
|
|
</Col>
|
|
</Row>
|
|
{:else}
|
|
<Alert color="danger">
|
|
<strong>Vous n'avez pas encore d'équipe !</strong>
|
|
Rendez-vous sur <a href="register">la page d'inscription</a> pour plus d'information.
|
|
</Alert>
|
|
{/if}
|
|
</Container>
|