From 2fc8120bb63a1dff9320c7f56708245a9e4ca8a0 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Fri, 11 Aug 2023 22:34:51 -0400 Subject: [PATCH 1/3] Retirer pages a-propos et actualite Hors du scope du projet pour l'instant --- templates/html/{ => old}/a-propos.gohtml | 0 templates/html/{ => old}/actualite.gohtml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename templates/html/{ => old}/a-propos.gohtml (100%) rename templates/html/{ => old}/actualite.gohtml (100%) diff --git a/templates/html/a-propos.gohtml b/templates/html/old/a-propos.gohtml similarity index 100% rename from templates/html/a-propos.gohtml rename to templates/html/old/a-propos.gohtml diff --git a/templates/html/actualite.gohtml b/templates/html/old/actualite.gohtml similarity index 100% rename from templates/html/actualite.gohtml rename to templates/html/old/actualite.gohtml From 5242b263b8ed6169040ee2dd88db92e87fc84a6f Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Fri, 11 Aug 2023 22:35:26 -0400 Subject: [PATCH 2/3] Comment out routes et handlers pour a-propos et actualite --- cmd/server.go | 12 +++++++++--- templates/html/header.gohtml | 4 +--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index 9c30316..5173374 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -214,11 +214,11 @@ func RunServer() { e.GET("/", handleIndex) - e.GET("/a-propos", handleAPropos) + //e.GET("/a-propos", handleAPropos) - e.GET("/actualite", handleActualite) + //e.GET("/actualite", handleActualite) - e.GET("/actualite/:article", handleActualiteArticle) + //e.GET("/actualite/:article", handleActualiteArticle) e.GET("/vie-etudiante", handleVieEtudiante) @@ -254,18 +254,24 @@ func handleIndex(c echo.Context) error { return c.Render(http.StatusOK, "index-html", nil) } +/* func handleAPropos(c echo.Context) error { return c.Render(http.StatusOK, "a-propos-html", nil) } +*/ +/* func handleActualite(c echo.Context) error { return c.Render(http.StatusOK, "actualite-html", nil) } +*/ +/* func handleActualiteArticle(c echo.Context) error { article := c.Param("article") return c.String(http.StatusOK, fmt.Sprintf("Article: %s", article)) } +*/ func handleVieEtudiante(c echo.Context) error { return c.Render(http.StatusOK, "vie-etudiante-html", nil) diff --git a/templates/html/header.gohtml b/templates/html/header.gohtml index 178ae4a..cfacdd2 100644 --- a/templates/html/header.gohtml +++ b/templates/html/header.gohtml @@ -2,9 +2,7 @@
    -
  • index
  • -
  • À propos
  • -
  • Actualité
  • +
  • AGECEM
  • Vie étudiante
  • Documentation
  • Formulaires
  • From 8d7f6d0983ea85c09b3f13b5317045e38395b788 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Fri, 11 Aug 2023 22:49:02 -0400 Subject: [PATCH 3/3] Retire /formulaires du header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On a rien a mettre dedans encore, les formulaires en format pdf pourront être disponibles dans /documentation en attendant --- templates/html/header.gohtml | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/html/header.gohtml b/templates/html/header.gohtml index cfacdd2..c4e3185 100644 --- a/templates/html/header.gohtml +++ b/templates/html/header.gohtml @@ -5,7 +5,6 @@
  • AGECEM
  • Vie étudiante
  • Documentation
  • -
  • Formulaires
  • admin