diff --git a/ui/src/lib/locales/en.json b/ui/src/lib/locales/en.json index cadbc44..b5abd84 100644 --- a/ui/src/lib/locales/en.json +++ b/ui/src/lib/locales/en.json @@ -196,6 +196,14 @@ "see": "Display the zone at this time", "title": "History of changes to the zone " }, + "logs": { + "date": "Date", + "description": "Action/description", + "level": "Level", + "no-entry": "No entry in the domain log.", + "title": "Domain's logs ", + "user": "User" + }, "menu": { "my-domains": "My domains", "my-providers": "My domain providers", diff --git a/ui/src/lib/locales/fr.json b/ui/src/lib/locales/fr.json index 76cfaea..e82e06d 100644 --- a/ui/src/lib/locales/fr.json +++ b/ui/src/lib/locales/fr.json @@ -190,6 +190,14 @@ "see": "Voir la zone à ce moment", "title": "Historique des changements la zone " }, + "logs": { + "date": "Date", + "description": "Action/description", + "level": "Niveau", + "no-entry": "Aucune entrée dans le journal du domaine.", + "title": "Journal du domaine ", + "user": "Utilisateur" + }, "menu": { "my-domains": "Mes domaines", "dns-resolver": "Résolveur DNS", diff --git a/ui/src/routes/domains/[dn]/logs/+page.svelte b/ui/src/routes/domains/[dn]/logs/+page.svelte index ce781e7..3bd1f3b 100644 --- a/ui/src/routes/domains/[dn]/logs/+page.svelte +++ b/ui/src/routes/domains/[dn]/logs/+page.svelte @@ -1,5 +1,6 @@
-

Journal du domaine {data.domain.domain}

+

{$t("logs.title")} {data.domain.domain}

{#await getDomainLogs(data.domain.id)}

{$t('wait.loading')}

{:then logs} - +
- - - - + + + + {#if logs} {#each logs as log} - + + - - {/each} {:else} {/if}
UtilisateurAction/descriptionDateNiveau{$t("logs.user")}{$t("logs.level")}{$t("logs.description")}{$t("logs.date")}
- {#await getUser(log.id_user)} - {log.id_user} - {:then user} - - {user.Email} - - {/await} + +
+ {#await getUser(log.id_user)} + {log.id_user} + {log.id_user} + {:then user} + {user.email} + + {user.email} + + {/await} +
+
+ {#if log.level > 9}DEBUG + {:else if log.level > 8}INFO + {:else if log.level > 7}INFO + {:else if log.level > 3}WARN + {:else if log.level > 1}ERR + {:else}CRIT + {/if} + + {log.content} {log.content} {new Intl.DateTimeFormat(undefined, {dateStyle: "short", timeStyle: "medium"}).format(new Date(log.date))} {log.level}
- Aucune entrée dans le journal du domaine. + {$t("logs.no-entry")}