mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-06-26 15:12:48 +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 {
|
type emptyHyphaData struct {
|
||||||
|
Meta viewutil.Meta
|
||||||
HyphaName string
|
HyphaName string
|
||||||
AllowRegistration bool
|
AllowRegistration bool
|
||||||
UseAuth bool
|
UseAuth bool
|
||||||
@ -47,6 +48,7 @@ type emptyHyphaData struct {
|
|||||||
func EmptyHypha(meta viewutil.Meta, hyphaName string) string {
|
func EmptyHypha(meta viewutil.Meta, hyphaName string) string {
|
||||||
var buf strings.Builder
|
var buf strings.Builder
|
||||||
if err := chainEmptyHypha.Get(meta).ExecuteTemplate(&buf, "empty hypha card", emptyHyphaData{
|
if err := chainEmptyHypha.Get(meta).ExecuteTemplate(&buf, "empty hypha card", emptyHyphaData{
|
||||||
|
Meta: meta,
|
||||||
HyphaName: hyphaName,
|
HyphaName: hyphaName,
|
||||||
AllowRegistration: cfg.AllowRegistration,
|
AllowRegistration: cfg.AllowRegistration,
|
||||||
UseAuth: cfg.UseAuth,
|
UseAuth: cfg.UseAuth,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user