Search Apps Documentation Source Content File Folder Download Copy Actions Download

render.gno

0.50 Kb · 18 lines
 1package cla
 2
 3import "gno.land/p/moul/helplink"
 4
 5func Render(path string) string {
 6	if requiredHash == "" {
 7		return "# Gno CLA Registry\n\n**Status:** CLA enforcement is DISABLED\n"
 8	}
 9
10	output := "# Gno CLA Registry\n\n**Status:** CLA enforcement is ENABLED\n\n"
11	output += "**Required Hash:** " + requiredHash + "\n"
12	if claURL != "" {
13		output += "**CLA Document:** " + claURL + "\n"
14	}
15	output += "\n### Actions\n\n"
16	output += helplink.Func("Sign CLA", "Sign", "hash", requiredHash) + "\n"
17	return output
18}