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,
|
||||
"WikiName": cfg.WikiName,
|
||||
"HomeHypha": cfg.HomeHypha,
|
||||
"UserHypha": cfg.UserHypha,
|
||||
}
|
||||
var out strings.Builder
|
||||
err = temp.Execute(&out, data)
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{block "login" .}}Login{{end}}
|
||||
</a>
|
||||
{{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}}
|
||||
</a>
|
||||
{{end}}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user