1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-05 02:29:54 +00:00

Empty hyphae: Fix the message for wikis with auth

This commit is contained in:
Timur Ismagilov 2022-04-29 12:21:45 +03:00
parent 9136622ffc
commit ba91d3e2f7

View File

@ -39,6 +39,7 @@ func Init() {
}
type emptyHyphaData struct {
Meta viewutil.Meta
HyphaName string
AllowRegistration bool
UseAuth bool
@ -47,6 +48,7 @@ type emptyHyphaData struct {
func EmptyHypha(meta viewutil.Meta, hyphaName string) string {
var buf strings.Builder
if err := chainEmptyHypha.Get(meta).ExecuteTemplate(&buf, "empty hypha card", emptyHyphaData{
Meta: meta,
HyphaName: hyphaName,
AllowRegistration: cfg.AllowRegistration,
UseAuth: cfg.UseAuth,