From 7cd4559fea46f0b9be5c9604fa45644fd084a281 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Mon, 8 Aug 2022 01:41:56 -0500 Subject: `parseOfficeHours` works correctly now. PT office hours can now be automatically parsed (if using strawpoll). Also displaying office hours in TAMU HTML Output page --- src/components/TamuOutput.svelte | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/components/TamuOutput.svelte') 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} -
+

{/if} + {#if pt.office_hours != undefined && pt.office_hours.length > 0} +

+ Office Hours: +

+
    + {#each pt.office_hours as ofh} +
  • {ofh.longInfo}
  • + {/each} +
+ {/if}
{/each}
-- cgit v1.2.3