diff --git a/src/app/components/Head.tsx b/src/app/components/Head.tsx
index 97837026..5302f94b 100644
--- a/src/app/components/Head.tsx
+++ b/src/app/components/Head.tsx
@@ -1,7 +1,9 @@
import {
- repositoryUrl,
+ documentationUrl,
} from "../contents/constants";
+
import { useTranslation } from "react-i18next";
+import { Icon } from "design-react-kit";
// let timer = null;
// let lastGen = null;
@@ -45,11 +47,20 @@ export const Head = (): JSX.Element => {
{t("editor.title")}
+
+
+ {t("editor.source_code")}
+
{/* {info && (
{t("editor.lastgeneration")}: {info}
diff --git a/src/app/contents/constants.ts b/src/app/contents/constants.ts
index a1ad4732..a354bd62 100644
--- a/src/app/contents/constants.ts
+++ b/src/app/contents/constants.ts
@@ -8,7 +8,7 @@ export const {
// eslint-disable-next-line no-undef
} = process.env;
-export const repositoryUrl = `https://docs.italia.it/italia/developers-italia/publiccodeyml/it/master/`;
+export const documentationUrl = `https://yml.publiccode.tools`;
export const versionsUrl = `https://api.github.com/repos/${REPOSITORY}/contents/version`;
export const SAMPLE_YAML_URL = `https://raw.githubusercontent.com/italia/publiccode-editor/master/publiccode.yml`;
export const elasticUrl = ELASTIC_URL || "";
diff --git a/src/asset/content.scss b/src/asset/content.scss
index fbe39be6..36be0435 100644
--- a/src/asset/content.scss
+++ b/src/asset/content.scss
@@ -29,12 +29,12 @@ $head-background-color: #fdfdfd;
.content__head__help {
margin: 10px 20px 0;
- height: 100%;
+ height: 40px;
display: flex;
- flex-direction: column;
+ flex-direction: row;
align-items: flex-end;
- justify-content: space-around;
+ justify-content: space-between;
text-align: right;
a {
@@ -44,6 +44,7 @@ $head-background-color: #fdfdfd;
font-size: 16px;
font-weight: bold;
line-height: 24px;
+ padding-left: 2rem;
}
}
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json
index 905107db..99a530eb 100644
--- a/src/i18n/locales/en.json
+++ b/src/i18n/locales/en.json
@@ -3,6 +3,7 @@
"cancel": "Cancel",
"title": "publiccode.yml Editor",
"needhelp": "Need Help?",
+ "source_code": "Source code",
"lastgeneration": "Last generation",
"addlanguage": "add language to the publiccode.yml file...",
"readmore": "Read more",
diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json
index f4c73e09..a588d105 100644
--- a/src/i18n/locales/fr.json
+++ b/src/i18n/locales/fr.json
@@ -3,6 +3,7 @@
"cancel": "Cancel",
"title": "publiccode.yml Editor",
"needhelp": "Need Help?",
+ "source_code": "Source code",
"lastgeneration": "Last generation",
"addlanguage": "add language to the publiccode.yml file...",
"readmore": "Read more",
diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json
index a66737e3..ce986697 100644
--- a/src/i18n/locales/it.json
+++ b/src/i18n/locales/it.json
@@ -3,6 +3,7 @@
"cancel": "Annulla",
"title": "publiccode.yml Editor",
"needhelp": "Aiuto?",
+ "source_code": "Codice sorgente",
"lastgeneration": "Ultimo aggiornamento",
"addlanguage": "aggiungi lingua al file publiccode.yml...",
"readmore": "Leggi di piĆ¹",