Si on suit les considérations du domain-driven design, le fait qu'on réfère toustes à cette partie du code comme `le frontend` me pousse à renommer le package pour mieux réflèter notre utilisation. Ça devrait rendre plus évident où les fichiers sources du frontend sont situés.
45 lines
No EOL
1.2 KiB
HTML
45 lines
No EOL
1.2 KiB
HTML
{{ define "documentation-html" }}
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>AGECEM | Documentation</title>
|
|
<link rel="stylesheet" href="/public/css/documentation.css">
|
|
{{ template "general-html" }}
|
|
</head>
|
|
|
|
<body>
|
|
{{ template "header-html" }}
|
|
<div class="wrapper documentationWrapper">
|
|
<h1 class="heading1">Documentation</h1>
|
|
<p>
|
|
{{ if not .Data.Buckets }}
|
|
Documentation non-accessible pour l'instant, merci de votre patience
|
|
{{ else }}
|
|
{{ range .Data.Buckets }}
|
|
{{ $bucket_name := .Name }}
|
|
{{ $bucket_display_name := .DisplayName }}
|
|
<details class="documentationCategorie">
|
|
<summary class="documentationDescription">{{ $bucket_display_name }}</summary>
|
|
<ul class="documentationListe">
|
|
{{ range .Documents }}
|
|
<a class="documentationLien" href="/public/documentation/{{ $bucket_name }}/{{ . }}">
|
|
<li class="documentationDocument">{{ . }}</li>
|
|
</a>
|
|
{{ end}}
|
|
</ul>
|
|
</details>
|
|
{{ end }}
|
|
{{ end }}
|
|
</p>
|
|
<p>
|
|
{{ .Message }}
|
|
</p>
|
|
</div>
|
|
<!-- {{ template "snackbar-html" }} -->
|
|
{{ template "footer-html" }}
|
|
</body>
|
|
|
|
</html>
|
|
{{ end }} |