diff --git a/controller/internal/web/handlers.go b/controller/internal/web/handlers.go index b0274cb..b0ca9a0 100644 --- a/controller/internal/web/handlers.go +++ b/controller/internal/web/handlers.go @@ -390,6 +390,28 @@ func (s *Server) deployHandler(w http.ResponseWriter, r *http.Request, name stri data["BackupDestWarningSeverity"] = health.Severity } } + + // App-to-app integrations + if meta.HasIntegrations() && s.integrationMgr != nil { + data["HasIntegrations"] = true + data["Integrations"] = s.integrationMgr.ListForProvider(meta.Slug) + } + + // Geo-restriction per-app data + geo := s.settings.GetGeoRestriction() + if geo != nil && geo.Enabled && s.cfg.Infrastructure.CFAPIToken != "" { + data["GeoGlobalEnabled"] = true + data["GeoGlobalCountries"] = geo.AllowedCountries + if ov, ok := geo.AppOverrides[name]; ok { + data["GeoAppOverride"] = true + data["GeoAppOverrideCountries"] = ov.AllowedCountries + } else { + data["GeoAppOverrideCountries"] = []string{} + } + } else { + data["GeoGlobalCountries"] = []string{} + data["GeoAppOverrideCountries"] = []string{} + } } // Memory info for deploy page (only for non-deployed apps) @@ -478,28 +500,6 @@ func (s *Server) appDetailHandler(w http.ResponseWriter, r *http.Request, slug s data["HasOptionalConfig"] = found.Meta.HasOptionalConfig() data["EffectiveSubdomain"] = effectiveSubdomain - // App-to-app integrations - if found.Meta.HasIntegrations() && s.integrationMgr != nil { - data["HasIntegrations"] = true - data["Integrations"] = s.integrationMgr.ListForProvider(found.Meta.Slug) - } - - // Geo-restriction per-app data - geo := s.settings.GetGeoRestriction() - if geo != nil && geo.Enabled && s.cfg.Infrastructure.CFAPIToken != "" { - data["GeoGlobalEnabled"] = true - data["GeoGlobalCountries"] = geo.AllowedCountries - if ov, ok := geo.AppOverrides[found.Name]; ok { - data["GeoAppOverride"] = true - data["GeoAppOverrideCountries"] = ov.AllowedCountries - } else { - data["GeoAppOverrideCountries"] = []string{} - } - } else { - data["GeoGlobalCountries"] = []string{} - data["GeoAppOverrideCountries"] = []string{} - } - s.executeTemplate(w, r, "app_info", data) } diff --git a/controller/internal/web/templates/app_info.html b/controller/internal/web/templates/app_info.html index c15c65a..86c6ffc 100644 --- a/controller/internal/web/templates/app_info.html +++ b/controller/internal/web/templates/app_info.html @@ -179,202 +179,5 @@ async function saveOptionalConfig(stackName) { {{end}} -{{if .HasIntegrations}} -
- Más telepített alkalmazásokkal való összekapcsolás. Az integráció automatikusan felfüggesztődik, ha bármelyik alkalmazás leáll, és újraaktiválódik indításkor. -
- - {{range .Integrations}} -{{.Description}}
- {{if not .TargetDeployed}} - Nincs telepítve - {{else if not .TargetRunning}} - Célalkalmazás leállítva - {{else if eq .Status "error"}} - Hiba - {{else if .Enabled}} - Aktív - {{end}} -- Az alkalmazás egyéni országkorlátozás nélkül a globális beállítást követi. -
- - - -+ Más telepített alkalmazásokkal való összekapcsolás. Az integráció automatikusan felfüggesztődik, ha bármelyik alkalmazás leáll, és újraaktiválódik indításkor. +
+ + {{range .Integrations}} +{{.Description}}
+ {{if not .TargetDeployed}} + Nincs telepítve + {{else if not .TargetRunning}} + Célalkalmazás leállítva + {{else if eq .Status "error"}} + Hiba + {{else if .Enabled}} + Aktív + {{end}} ++ Az alkalmazás egyéni országkorlátozás nélkül a globális beállítást követi. +
+ + + +