mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 03:36:16 +00:00
Empty hyphae: Fix the message for wikis with auth
This commit is contained in:
parent
9136622ffc
commit
ba91d3e2f7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user