Skip to content
Snippets Groups Projects
Commit c5805822 authored by Aaron Dötsch's avatar Aaron Dötsch
Browse files

Remove study program selector from information page

parent fbc03742
No related branches found
No related tags found
No related merge requests found
<script lang="ts"> <script lang="ts">
import { A, Button, Heading, Label, Li, List, Select } from 'flowbite-svelte'; import { A, Button, Heading, Label, Li, List, Select } from 'flowbite-svelte';
import { LL } from "$lib/i18n/i18n-svelte"; import { LL, locale } from "$lib/i18n/i18n-svelte";
import type { Translation } from '$lib/i18n/i18n-types.js'; import type { Translation } from '$lib/i18n/i18n-types.js';
export let data; export let data;
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</script> </script>
<Heading tag="h2" customSize="text-3xl font-bold" class="mb-6">{$LL.Information.Schedule()}</Heading> <Heading tag="h2" customSize="text-3xl font-bold" class="mb-6">{$LL.Information.Schedule()}</Heading>
<!--
<Label class="mb-4"> <Label class="mb-4">
{$LL.Information.StudyProgram()} {$LL.Information.StudyProgram()}
<Select items={studyPrograms.map(sp=>({name: $LL.Information.StudyPrograms[sp](), value: sp}))} bind:value={studyProgram} /> <Select items={studyPrograms.map(sp=>({name: $LL.Information.StudyPrograms[sp](), value: sp}))} bind:value={studyProgram} />
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
<img src="/stundenplaene/stundenplan-{studyProgram}-dark.png" alt={$LL.Information.ScheduleAlt({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})} class="w-full mb-2 dark:block hidden" /> <img src="/stundenplaene/stundenplan-{studyProgram}-dark.png" alt={$LL.Information.ScheduleAlt({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})} class="w-full mb-2 dark:block hidden" />
<div class="flex justify-end mb-4"><Button href="/stundenplaene/stundenplan-{studyProgram}.pdf" download={$LL.Information.DownloadFilename({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})}>{$LL.Information.Download()}</Button></div> <div class="flex justify-end mb-4"><Button href="/stundenplaene/stundenplan-{studyProgram}.pdf" download={$LL.Information.DownloadFilename({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})}>{$LL.Information.Download()}</Button></div>
</div> </div>
-->
<div>
<img src="/stundenplaene/stundenplan-master-{$locale==="de"?"deutsch":"englisch"}.png" alt={$LL.Information.ScheduleAlt({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})} class="w-full mb-2 block dark:hidden" />
<img src="/stundenplaene/stundenplan-master-{$locale==="de"?"deutsch":"englisch"}-dark.png" alt={$LL.Information.ScheduleAlt({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})} class="w-full mb-2 dark:block hidden" />
<div class="flex justify-end mb-4"><Button href="/stundenplaene/stundenplan-master-{$locale==="de"?"deutsch":"englisch"}.pdf" download={$LL.Information.DownloadFilename({semester: data.semester, studyProgram: $LL.Information.StudyPrograms[studyProgram]()})}>{$LL.Information.Download()}</Button></div>
</div>
<Heading tag="h2" customSize="text-3xl font-bold" class="mb-6">{$LL.Information.Information()}</Heading> <Heading tag="h2" customSize="text-3xl font-bold" class="mb-6">{$LL.Information.Information()}</Heading>
<List tag="ul" class="mb-2 text-gray-900 dark:text-gray-300"> <List tag="ul" class="mb-2 text-gray-900 dark:text-gray-300">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment