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

Fix filename on information page

parent c5805822
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
export let data; export let data;
const studyPrograms = Object.keys($LL.Information.StudyPrograms) as (keyof Translation["Information"]["StudyPrograms"])[]; const studyPrograms = Object.keys($LL.Information.StudyPrograms) as (keyof Translation["Information"]["StudyPrograms"])[];
let studyProgram = studyPrograms[0]; $: studyProgram = $locale==="de"?studyPrograms[0]:studyPrograms[1];
</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>
...@@ -14,18 +14,13 @@ ...@@ -14,18 +14,13 @@
{$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} />
</Label> </Label>
-->
<div> <div>
<img src="/stundenplaene/stundenplan-{studyProgram}.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-{studyProgram}.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-{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