aboutsummaryrefslogtreecommitdiff
path: root/src/components/TamuOutput.svelte
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-08-08 01:41:56 -0500
committerFurkan Sahin <furkan-dev@proton.me>2022-08-08 01:41:56 -0500
commit7cd4559fea46f0b9be5c9604fa45644fd084a281 (patch)
treebd8f98159d27687ce366afc718e7b7fddcae9a45 /src/components/TamuOutput.svelte
parent4974eb40dd230a0ae58ba7c4e8c5be635ae19a02 (diff)
`parseOfficeHours` works correctly now. PT office hours can now be automatically parsed (if using strawpoll). Also displaying office hours in TAMU HTML Output page
Diffstat (limited to 'src/components/TamuOutput.svelte')
-rw-r--r--src/components/TamuOutput.svelte12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/TamuOutput.svelte b/src/components/TamuOutput.svelte
index 48bb5e1..2ce93e6 100644
--- a/src/components/TamuOutput.svelte
+++ b/src/components/TamuOutput.svelte
@@ -32,7 +32,7 @@
class="flex flex-col overflow-y-auto h-full overflow-x-hidden mx-[25%] pt-10"
>
{#each peerTeachers as pt}
- <div class="flex-none h-40">
+ <div class="pb-4">
<hr />
<p>
<img
@@ -66,6 +66,16 @@
{/each}
</ul>
{/if}
+ {#if pt.office_hours != undefined && pt.office_hours.length > 0}
+ <p>
+ <strong class="text-lg">Office Hours:</strong>
+ </p>
+ <ul class="text-lg">
+ {#each pt.office_hours as ofh}
+ <li>{ofh.longInfo}</li>
+ {/each}
+ </ul>
+ {/if}
</div>
{/each}
</div>