Improve view of articles

This commit is contained in:
Emmanuel 2024-12-11 10:26:21 +01:00
parent 5ee146c2fc
commit 49269d8821
2 changed files with 31 additions and 22 deletions

View file

@ -24,7 +24,10 @@
</svelte:element> </svelte:element>
{/if} {/if}
{@html article.BLOC_TEXTUEL?.CONTENU} {@html article.BLOC_TEXTUEL?.CONTENU.replaceAll("<<", "«").replaceAll(
">>",
"»",
)}
{#if ciblesCreation.length > 0} {#if ciblesCreation.length > 0}
<ul> <ul>

View file

@ -406,8 +406,14 @@ export function summarizeLegalObject(
] ]
return { return {
items: [ items: [
`Article ${metaArticle.NUM} ${metaArticle.TYPE} ${metaArticle.ETAT}, en vigueur`, `Article${[metaArticle.NUM, metaArticle.TYPE, metaArticle.ETAT]
...(metaArticle.DATE_FIN === "2999-01-01" .filter((value) => value !== undefined)
.map((value) => ` ${value}`)
.join("")}, en vigueur`,
...(metaArticle.DATE_DEBUT === "2999-01-01" &&
metaArticle.DATE_FIN === "2999-01-01"
? []
: metaArticle.DATE_FIN === "2999-01-01"
? ([ ? ([
" depuis le ", " depuis le ",
{ {