diff --git a/src/lib/components/session/SessionNav.svelte b/src/lib/components/session/SessionNav.svelte new file mode 100644 index 000000000..b7a22c260 --- /dev/null +++ b/src/lib/components/session/SessionNav.svelte @@ -0,0 +1,59 @@ + + +
+
+ {#if previousSesssion} + + + + {/if} +
+
+ + + +
+ +
+ + + +
+
+ {#if nextSession} + + + + {/if} +
+
diff --git a/src/lib/components/session/SessionNavBlock.svelte b/src/lib/components/session/SessionNavBlock.svelte index 5ec245068..f4c00fb2f 100644 --- a/src/lib/components/session/SessionNavBlock.svelte +++ b/src/lib/components/session/SessionNavBlock.svelte @@ -3,17 +3,21 @@ import sessions from "$lib/sessions"; import { toHumanReadableTime } from "$lib/time"; export let session: Session | undefined; + export let hover: boolean = false; + export let extraClasses: string = "";
{#if session}
-
+
{session.meta.branch}
-
+
{#if session.meta.startTs} {toHumanReadableTime(session.meta.startTs)} diff --git a/src/routes/projects/[id]/+layout.svelte b/src/routes/projects/[id]/+layout.svelte index 811cca097..b8916afb0 100644 --- a/src/routes/projects/[id]/+layout.svelte +++ b/src/routes/projects/[id]/+layout.svelte @@ -5,8 +5,8 @@ $: project = data.project; -
-
+
+
Week
Day
Session
diff --git a/src/routes/projects/[id]/sessions/[hash]/+page.svelte b/src/routes/projects/[id]/sessions/[hash]/+page.svelte index bec4eca6e..0b56285da 100644 --- a/src/routes/projects/[id]/sessions/[hash]/+page.svelte +++ b/src/routes/projects/[id]/sessions/[hash]/+page.svelte @@ -8,6 +8,7 @@ import SessionNavBlock from "$lib/components/session/SessionNavBlock.svelte"; import FaAngleLeft from "svelte-icons/fa/FaAngleLeft.svelte"; import FaAngleRight from "svelte-icons/fa/FaAngleRight.svelte"; + import SessionNav from "$lib/components/session/SessionNav.svelte"; export let data: PageData; // const { deltas, files, session, nextSession, previousSesssion, project } = data; @@ -54,28 +55,16 @@ // const showTimeline = isFinite(min) && isFinite(max); -
-
- {#if $previousSesssion} - - - - {/if} -
- -
- -
- -
- {#if $nextSession} - - - - {/if} +
+
+
+
session hash: {$session?.hash}