From 2f9eb95b72b54fcdc76b23697ac39cde207ffbc2 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sat, 7 Dec 2024 08:16:18 +0100 Subject: [PATCH] Add article tabs --- src/lib/legal/index.ts | 5 +++++ src/routes/article/[id]/+page.svelte | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/lib/legal/index.ts b/src/lib/legal/index.ts index 5e00edc..1bb1bf0 100644 --- a/src/lib/legal/index.ts +++ b/src/lib/legal/index.ts @@ -642,6 +642,11 @@ export function menuItemsFromLegalId( return undefined } switch (rootType) { + case "article": + return [ + { href: `/articles/${id}`, label: "Présentation" }, + { href: `/article/${id}`, label: "ARTICLE" }, + ] case "texte_version": return [ { href: `/textes/${id}`, label: "Présentation" }, diff --git a/src/routes/article/[id]/+page.svelte b/src/routes/article/[id]/+page.svelte index 11810c2..f87f093 100644 --- a/src/routes/article/[id]/+page.svelte +++ b/src/routes/article/[id]/+page.svelte @@ -1,6 +1,7 @@ + +