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

Fix lien vers formule github

parent 9dfc0136
No related branches found
No related tags found
1 merge request!132Bug lien openfisca variables
Pipeline #8232 passed
......@@ -82,8 +82,11 @@
</script>
{#if formula.documentation !== undefined}
<div class="">
<div class="my-4 px-5">
<p class="italic">
<span class="text-base not-italic text-gray-600">Notes&nbsp;:</span>
{formula.documentation.replace(/^\n+/, "").replace(/\n+$/, "")}
</p>
</div>
{/if}
......@@ -91,23 +94,19 @@
<p class="mb-4 overflow-x-auto whitespace-pre-wrap break-all tracking-wider">
{formula.source_code}
</p>
<a
class="link break-all text-gray-900"
href={newFormulaRepositoryUrl(metadata, formula)}
rel="noreferrer"
href="https://github.com/openfisca/openfisca-france/blob/master/{encodeURIComponent(
formula.file_path,
)}#L{formula.start_line_number}"
target="_blank"
rel="noreferrer"
>
<svg
class="inline h-5 w-5 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
><path fill="none" d="M0 0h24v24H0z" /><path
d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z"
/></svg
>
Formule OpenFisca sur Github</a
Formule OpenFisca sur Github<iconify-icon
class="ml-1 align-[-0.15rem] text-base"
icon="ri-external-link-line"
/></a
>
</div>
......
......@@ -154,7 +154,7 @@
{/if}
{#each buildInstantFormulaAndReferencesArray(variable) as { formula, instant, references }}
<p class="mt-5 pb-3 text-xl font-bold">
<p class="mt-5 text-xl font-bold">
{#if formula === undefined}
<!-- {#if instant !== "0001-01-01"}
Le <i>{instant}</i>&nbsp;:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment