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
|
return undefined
|
||||||
}
|
}
|
||||||
switch (rootType) {
|
switch (rootType) {
|
||||||
|
case "article":
|
||||||
|
return [
|
||||||
|
{ href: `/articles/${id}`, label: "Présentation" },
|
||||||
|
{ href: `/article/${id}`, label: "ARTICLE" },
|
||||||
|
]
|
||||||
case "texte_version":
|
case "texte_version":
|
||||||
return [
|
return [
|
||||||
{ href: `/textes/${id}`, label: "Présentation" },
|
{ href: `/textes/${id}`, label: "Présentation" },
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
|
import IdPagesSwitcher from "$lib/components/IdPagesSwitcher.svelte"
|
||||||
import {
|
import {
|
||||||
summarizeArticleLienDbProperties,
|
summarizeArticleLienDbProperties,
|
||||||
summarizeArticleProperties,
|
summarizeArticleProperties,
|
||||||
|
@ -21,6 +22,8 @@
|
||||||
$: summary = summarizeLegalObject({ key: "article" }, "article", article)
|
$: summary = summarizeLegalObject({ key: "article" }, "article", article)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<IdPagesSwitcher id={article.META.META_COMMUN.ID} />
|
||||||
|
|
||||||
<header class="my-6 max-w-full">
|
<header class="my-6 max-w-full">
|
||||||
<h2
|
<h2
|
||||||
class="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0"
|
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