From 84dc500a772c78779942d800e95c5f3aba94813a Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 5 Oct 2023 14:23:06 -0400 Subject: [PATCH] Afficher message si documentation n'est pas disponible --- templates/html/documentation.gohtml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/templates/html/documentation.gohtml b/templates/html/documentation.gohtml index ce687a0..ea18bd3 100644 --- a/templates/html/documentation.gohtml +++ b/templates/html/documentation.gohtml @@ -12,17 +12,21 @@

Documentation

- {{ range .Data.Buckets }} - {{ $bucket_name := .Name }} - {{ $bucket_display_name := .DisplayName }} -

- {{ $bucket_display_name }} -
    - {{ range .Documents }} -
  • {{ . }}
  • - {{ end}} -
-
+ {{ 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 }} +
+ {{ $bucket_display_name }} +
    + {{ range .Documents }} +
  • {{ . }}
  • + {{ end}} +
+
+ {{ end }} {{ end }}