mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-20 23:36:51 +00:00
Viewutil: Fix the link to profile
This commit is contained in:
parent
b677f4137a
commit
9c0cfccf0e
@ -101,7 +101,6 @@ func AboutHTML(lc *l18n.Localizer) string {
|
|||||||
"UseAuth": cfg.UseAuth,
|
"UseAuth": cfg.UseAuth,
|
||||||
"WikiName": cfg.WikiName,
|
"WikiName": cfg.WikiName,
|
||||||
"HomeHypha": cfg.HomeHypha,
|
"HomeHypha": cfg.HomeHypha,
|
||||||
"UserHypha": cfg.UserHypha,
|
|
||||||
}
|
}
|
||||||
var out strings.Builder
|
var out strings.Builder
|
||||||
err = temp.Execute(&out, data)
|
err = temp.Execute(&out, data)
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
{{block "login" .}}Login{{end}}
|
{{block "login" .}}Login{{end}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="/hypha/{%s cfg.UserHypha %}/{%s u.Name %}" class="auth-links__link auth-links__user-link">
|
<a href="/hypha/{{block "user hypha" .}}{{end}}/{{.Meta.U.Name}}" class="auth-links__link auth-links__user-link">
|
||||||
{{beautifulName .Meta.U.Name}}
|
{{beautifulName .Meta.U.Name}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -24,13 +24,14 @@ const ruText = `
|
|||||||
{{define "search by title"}}Поиск по названию{{end}}
|
{{define "search by title"}}Поиск по названию{{end}}
|
||||||
{{define "close this dialog"}}Закрыть этот диалог{{end}}
|
{{define "close this dialog"}}Закрыть этот диалог{{end}}
|
||||||
{{define "login"}}Войти{{end}}
|
{{define "login"}}Войти{{end}}
|
||||||
{{define "Register"}}Регистрация{{end}}
|
{{define "register"}}Регистрация{{end}}
|
||||||
`
|
`
|
||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
dataText := fmt.Sprintf(`
|
dataText := fmt.Sprintf(`
|
||||||
{{define "wiki name"}}%s{{end}}
|
{{define "wiki name"}}%s{{end}}
|
||||||
`, cfg.WikiName)
|
{{define "user hypha"}}%s{{end}}
|
||||||
|
`, cfg.WikiName, cfg.UserHypha)
|
||||||
BaseEn = m(m(template.New("").
|
BaseEn = m(m(template.New("").
|
||||||
Funcs(template.FuncMap{
|
Funcs(template.FuncMap{
|
||||||
"beautifulName": util.BeautifulName,
|
"beautifulName": util.BeautifulName,
|
||||||
|
Loading…
Reference in New Issue
Block a user