Skip to content

Commit

Permalink
if lab structured as a pdf detected, display as talk
Browse files Browse the repository at this point in the history
  • Loading branch information
edeleastar committed Mar 8, 2024
1 parent 29e89fc commit d9d5e58
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<script lang="ts">
import type { PageData } from "./$types";
import Lab from "$lib/ui/learning-objects/content/Lab.svelte";
import Context from "$lib/ui/learning-objects/structure/Context.svelte";
import Talk from "$lib/ui/learning-objects/content/Talk.svelte";
export let data: PageData;
</script>

<Lab lab={data.lab} />
{#if data.lab.lab.pdf}
<Context lo={data.lab.lab}>
<Talk lo={data.lab.lab} />
</Context>
{:else}
<Lab lab={data.lab} />
{/if}

0 comments on commit d9d5e58

Please sign in to comment.