From ff628fd276d070d6fc7e08cf081b25b631f1d919 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Mon, 12 Aug 2024 18:50:31 -0600 Subject: [PATCH] Adding GraphQL Playground link to navigation --- core/templates.go | 1 + templates/base.html | 8 ++++++++ templates/graphql.html | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/templates.go b/core/templates.go index 2a1df2e..62b6740 100644 --- a/core/templates.go +++ b/core/templates.go @@ -36,6 +36,7 @@ func AddGlobalTmpl(c echo.Context) gobwebs.Map { pd.Data["about"] = lt.Translate("About") pd.Data["log_in"] = lt.Translate("Log in") pd.Data["log_out"] = lt.Translate("Log out") + pd.Data["graphql_playground"] = lt.Translate("GQL Playground") pd.Data["settings"] = lt.Translate("Settings") pd.Data["save_link"] = lt.Translate("Save Link") pd.Data["save_note"] = lt.Translate("Save Note") diff --git a/templates/base.html b/templates/base.html index 5b05cab..0aab10d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -184,6 +184,14 @@ {{end}} +
  • + + + + + {{.base_pd.Data.graphql_playground}} + +
  • diff --git a/templates/graphql.html b/templates/graphql.html index 66ee597..08514bf 100644 --- a/templates/graphql.html +++ b/templates/graphql.html @@ -13,7 +13,7 @@
    -
    +