diff --git a/views/about.go b/views/about.go index 261649b..b1c4068 100644 --- a/views/about.go +++ b/views/about.go @@ -101,7 +101,6 @@ func AboutHTML(lc *l18n.Localizer) string { "UseAuth": cfg.UseAuth, "WikiName": cfg.WikiName, "HomeHypha": cfg.HomeHypha, - "UserHypha": cfg.UserHypha, } var out strings.Builder err = temp.Execute(&out, data) diff --git a/viewutil/base.html b/viewutil/base.html index c604709..cfac78b 100644 --- a/viewutil/base.html +++ b/viewutil/base.html @@ -34,7 +34,7 @@ {{block "login" .}}Login{{end}} {{else}} - + {{beautifulName .Meta.U.Name}} {{end}} diff --git a/viewutil/viewutil.go b/viewutil/viewutil.go index 6fd71e6..68f4aea 100644 --- a/viewutil/viewutil.go +++ b/viewutil/viewutil.go @@ -24,13 +24,14 @@ const ruText = ` {{define "search by title"}}Поиск по названию{{end}} {{define "close this dialog"}}Закрыть этот диалог{{end}} {{define "login"}}Войти{{end}} -{{define "Register"}}Регистрация{{end}} +{{define "register"}}Регистрация{{end}} ` func Init() { dataText := fmt.Sprintf(` {{define "wiki name"}}%s{{end}} -`, cfg.WikiName) +{{define "user hypha"}}%s{{end}} +`, cfg.WikiName, cfg.UserHypha) BaseEn = m(m(template.New(""). Funcs(template.FuncMap{ "beautifulName": util.BeautifulName,