render.gno
0.56 Kb · 19 lines
1package gnocial
2
3import "strconv"
4
5// Render is the short gnoweb page for this fund realm.
6// The long client and Sheet live in the view realm. A realm has to declare
7// Render, and the storage deposit of this package cannot hold both the curve
8// and the full client.
9func Render(path string) string {
10 line := "# Gnocial\n\nPhien ban " + ProtocolVersion
11 if state.successor != "" {
12 line += "\n\nKe tiep: " + state.successor
13 }
14 if state.paused {
15 line += "\n\nTam dung dang bat. Ban ve van mo."
16 }
17 line += "\n\nThanh vien: " + strconv.Itoa(MemberCount())
18 return line
19}