36 lines
728 B
Svelte
36 lines
728 B
Svelte
<script>
|
|
import {
|
|
Button,
|
|
Col,
|
|
Container,
|
|
Row,
|
|
Icon,
|
|
} from 'sveltestrap';
|
|
|
|
import { page } from '$app/stores';
|
|
|
|
function slugToTitle(slug) {
|
|
switch(slug) {
|
|
case "manuals":
|
|
return "Réveil manuel";
|
|
case "usuals":
|
|
return "Réveil habituel";
|
|
case "excepts":
|
|
return "Exception";
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<Container fluid class="flex-fill">
|
|
<h2 class="mb-0">
|
|
{slugToTitle($page.params["kind"])} du ...
|
|
</h2>
|
|
{#if $page.params["kind"] == "manuals"}
|
|
manuals
|
|
{:else if $page.params["kind"] == "usuals"}
|
|
ususlas
|
|
{:else if $page.params["kind"] == "excepts"}
|
|
excepts
|
|
{/if}
|
|
</Container>
|