diff --git a/docker/ss-atlas/internal/handlers/routes.go b/docker/ss-atlas/internal/handlers/routes.go index 9bb15f9..713ffd8 100644 --- a/docker/ss-atlas/internal/handlers/routes.go +++ b/docker/ss-atlas/internal/handlers/routes.go @@ -25,7 +25,8 @@ type App struct { func NewRouter(cfg *config.Config, sc *ssstripe.Client, lc *ldap.Client, sw *swarm.Client) http.Handler { tmplPattern := filepath.Join(cfg.TemplatePath, "pages", "*.html") - tmpl := template.Must(template.ParseGlob(tmplPattern)) + partialsPattern := filepath.Join(cfg.TemplatePath, "partials", "*.html") + tmpl := template.Must(template.Must(template.ParseGlob(partialsPattern)).ParseGlob(tmplPattern)) app := &App{ cfg: cfg, diff --git a/docker/ss-atlas/templates/pages/activate.html b/docker/ss-atlas/templates/pages/activate.html index 9211cf1..c2c4004 100644 --- a/docker/ss-atlas/templates/pages/activate.html +++ b/docker/ss-atlas/templates/pages/activate.html @@ -61,6 +61,7 @@ display: block; } + {{template "analytics"}}