chore: Rename templates package to web_templates (#4383)

This commit is contained in:
Simon Heather
2024-03-27 16:05:52 +00:00
committed by GitHub
parent e846d90d1a
commit fb69965fd7
9 changed files with 36 additions and 36 deletions

View File

@@ -6,7 +6,7 @@ import (
"net/http"
"net/url"
"github.com/runatlantis/atlantis/server/controllers/templates"
"github.com/runatlantis/atlantis/server/controllers/web_templates"
"github.com/runatlantis/atlantis/server/events/vcs"
"github.com/runatlantis/atlantis/server/logging"
)
@@ -70,7 +70,7 @@ func (g *GithubAppController) ExchangeCode(w http.ResponseWriter, r *http.Reques
g.Logger.Debug("Found credentials for GitHub app %q with id %d", app.Name, app.ID)
err = templates.GithubAppSetupTemplate.Execute(w, templates.GithubSetupData{
err = web_templates.GithubAppSetupTemplate.Execute(w, web_templates.GithubSetupData{
Target: "",
Manifest: "",
ID: app.ID,
@@ -142,7 +142,7 @@ func (g *GithubAppController) New(w http.ResponseWriter, _ *http.Request) {
return
}
err = templates.GithubAppSetupTemplate.Execute(w, templates.GithubSetupData{
err = web_templates.GithubAppSetupTemplate.Execute(w, web_templates.GithubSetupData{
Target: url.String(),
Manifest: string(jsonManifest),
})