mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:48:20 +00:00
chore: Rename templates package to web_templates (#4383)
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user