Skip to content

Commit

Permalink
add year above the "nolla in group" section (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
lego-eden authored Dec 10, 2024
1 parent 41203a6 commit f3222aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/routes/(app)/members/[studentId]/HeldPositions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@
<HeldPositionsYear {mandates} {year} />
{/if}
{#if nollaIn?.year.toString() === year}
<div class="-mx-4 -mt-4 mb-4">
{#if !Object.keys(mandatesGroupedByYear).includes(nollaIn?.year.toString())}
<h1 class="mt-4 text-xl font-semibold">
{nollaIn?.year.toString()}
</h1>
{/if}
<div
class="tooltip -mx-4 flex flex-col items-stretch gap-0 whitespace-pre"
>
<a
href="/committees/nollu?year={nollaIn.year}"
class="btn btn-ghost w-full justify-start gap-2 font-medium normal-case text-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export let mandates: MandateWithPositionAndCommitte[];
</script>

<section class="mb-4">
<section class="mt-4">
<h1 class="text-xl font-semibold">{year}</h1>
<div class="flex flex-col items-stretch gap-0">
{#each mandates as mandate (mandate.id)}
Expand Down

0 comments on commit f3222aa

Please sign in to comment.