Add article tabs

This commit is contained in:
Emmanuel 2024-12-07 08:16:18 +01:00
parent 8b3a32d3c0
commit 2f9eb95b72
2 changed files with 8 additions and 0 deletions

View file

@ -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" },

View file

@ -1,6 +1,7 @@
<script lang="ts">
import { TreeView, SummaryView } from "augmented-data-viewer"
import IdPagesSwitcher from "$lib/components/IdPagesSwitcher.svelte"
import {
summarizeArticleLienDbProperties,
summarizeArticleProperties,
@ -21,6 +22,8 @@
$: summary = summarizeLegalObject({ key: "article" }, "article", article)
</script>
<IdPagesSwitcher id={article.META.META_COMMUN.ID} />
<header class="my-6 max-w-full">
<h2
class="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0"