Skip to content
Snippets Groups Projects
Commit 97a58e15 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Fix l'emplacement du picto

parent 56091744
No related branches found
No related tags found
1 merge request!92Fix l'emplacement du picto
Pipeline #4155 passed
...@@ -131,13 +131,14 @@ ...@@ -131,13 +131,14 @@
{/if} {/if}
</div> </div>
<div class="mb-4">
<!--Description du dispositif--> <!--Description du dispositif-->
{#if descriptionsByInstant !== undefined} {#if descriptionsByInstant !== undefined}
<!--Add variable descriptions as described in decomposition customization and order them by date. --> <!--Add variable descriptions as described in decomposition customization and order them by date. -->
{#each Object.entries(descriptionsByInstant).sort( ([instant1], [instant2]) => instant2.localeCompare(instant1), ) as [instant, descriptions]} {#each Object.entries(descriptionsByInstant).sort( ([instant1], [instant2]) => instant2.localeCompare(instant1), ) as [instant, descriptions]}
{#each descriptions as { href, note, title }} {#each descriptions as { href, note, title }}
<article class="mr-4"> <article class="mr-4">
<div class="mb-4"> <div class="">
{#if note !== undefined} {#if note !== undefined}
<span <span
class="break-words font-serif text-sm leading-normal text-black" class="break-words font-serif text-sm leading-normal text-black"
...@@ -156,10 +157,11 @@ ...@@ -156,10 +157,11 @@
{title ?? href} {title ?? href}
<span class="text-xs" <span class="text-xs"
>(consulté le {dateFormatter.format(new Date(instant))}) >(consulté le {dateFormatter.format(new Date(instant))})
</span><Icon <Icon
class="ml-0.5 inline h-3 w-3" class="ml-0.5 inline h-3 w-3"
icon="ri-share-box-fill" icon="ri-share-box-fill"
/> /></span
>
</a> </a>
{/if} {/if}
</span> </span>
...@@ -169,12 +171,13 @@ ...@@ -169,12 +171,13 @@
{/each} {/each}
{/each} {/each}
{/if} {/if}
</div>
<div class="mb-4">
<!--Référence législative du dispositif--> <!--Référence législative du dispositif-->
{#if referencesByInstant !== undefined} {#if referencesByInstant !== undefined}
<!--Add variable references as described in openfisca references + decomposition customization and order them by date. --> <!--Add variable references as described in openfisca references + decomposition customization and order them by date. -->
{#each Object.entries(referencesByInstant).sort( ([instant1], [instant2]) => instant2.localeCompare(instant1), ) as [instant, references]} {#each Object.entries(referencesByInstant).sort( ([instant1], [instant2]) => instant2.localeCompare(instant1), ) as [instant, references]}
<div class="mr-4 mb-4 rounded-sm bg-le-gris-dispositif-ultralight p-2"> <div class="mr-4 rounded-sm bg-le-gris-dispositif-ultralight p-2">
{#each references as { href, note, title }} {#each references as { href, note, title }}
<ul class="text-xs"> <ul class="text-xs">
<li> <li>
...@@ -184,12 +187,10 @@ ...@@ -184,12 +187,10 @@
{/if} {/if}
{:else} {:else}
<a class="link text-black" {href} target="_blank" <a class="link text-black" {href} target="_blank"
><span class="link flex items-center"> ><Icon
<Icon class="mr-1 inline-flex h-4 w-4"
class="mr-1 h-4 w-4"
icon="ri-file-text-line" icon="ri-file-text-line"
/>{title ?? href}</span /><span> {title ?? href}</span>
>
</a> </a>
{/if} {/if}
</li> </li>
...@@ -198,3 +199,4 @@ ...@@ -198,3 +199,4 @@
</div> </div>
{/each} {/each}
{/if} {/if}
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment