feat(page): customize title with server name
Add server name prefix to page title when configured, showing environment-specific branding.
This commit is contained in:
@@ -20,7 +20,11 @@ func (c *PageController) Index() {
|
||||
roadList := service.QueryRoad(ctx)
|
||||
c.Data["roadList"] = roadList
|
||||
c.Data["showStealConfig"] = web.AppConfig.DefaultBool("showStealConfig", true)
|
||||
c.Data["title"] = web.AppConfig.DefaultString("baseSettings::subtitle", "聚合支付管理系统")
|
||||
serverName := env.Get("serverName", "")
|
||||
if serverName != "" {
|
||||
serverName = fmt.Sprintf("(%s)", serverName)
|
||||
}
|
||||
c.Data["title"] = serverName + "聚合支付管理系统"
|
||||
c.TplName = "index.html"
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user