Add article tabs
This commit is contained in:
parent
8b3a32d3c0
commit
2f9eb95b72
2 changed files with 8 additions and 0 deletions
|
@ -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" },
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue