// Code generated by qtc from "stuff.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/stuff.qtpl:1 package templates //line templates/stuff.qtpl:1 import "github.com/bouncepaw/mycorrhiza/util" //line templates/stuff.qtpl:2 import "github.com/bouncepaw/mycorrhiza/user" //line templates/stuff.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/stuff.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/stuff.qtpl:4 func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User, headElements ...string) { //line templates/stuff.qtpl:4 qw422016.N().S(` `) //line templates/stuff.qtpl:10 qw422016.E().S(title) //line templates/stuff.qtpl:10 qw422016.N().S(` `) //line templates/stuff.qtpl:11 for _, el := range headElements { //line templates/stuff.qtpl:11 qw422016.N().S(el) //line templates/stuff.qtpl:11 } //line templates/stuff.qtpl:11 qw422016.N().S(`
`) //line templates/stuff.qtpl:24 qw422016.N().S(body) //line templates/stuff.qtpl:24 qw422016.N().S(` `) //line templates/stuff.qtpl:27 } //line templates/stuff.qtpl:27 func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, u *user.User, headElements ...string) { //line templates/stuff.qtpl:27 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/stuff.qtpl:27 StreamBaseHTML(qw422016, title, body, u, headElements...) //line templates/stuff.qtpl:27 qt422016.ReleaseWriter(qw422016) //line templates/stuff.qtpl:27 } //line templates/stuff.qtpl:27 func BaseHTML(title, body string, u *user.User, headElements ...string) string { //line templates/stuff.qtpl:27 qb422016 := qt422016.AcquireByteBuffer() //line templates/stuff.qtpl:27 WriteBaseHTML(qb422016, title, body, u, headElements...) //line templates/stuff.qtpl:27 qs422016 := string(qb422016.B) //line templates/stuff.qtpl:27 qt422016.ReleaseByteBuffer(qb422016) //line templates/stuff.qtpl:27 return qs422016 //line templates/stuff.qtpl:27 } //line templates/stuff.qtpl:29 func StreamUserListHTML(qw422016 *qt422016.Writer) { //line templates/stuff.qtpl:29 qw422016.N().S(`

List of users

`) //line templates/stuff.qtpl:34 var ( admins = make([]string, 0) moderators = make([]string, 0) editors = make([]string, 0) ) for u := range user.YieldUsers() { switch u.Group { case "admin": admins = append(admins, u.Name) case "moderator": moderators = append(moderators, u.Name) case "editor", "trusted": editors = append(editors, u.Name) } } //line templates/stuff.qtpl:49 qw422016.N().S(`

Admins

    `) //line templates/stuff.qtpl:52 for _, name := range admins { //line templates/stuff.qtpl:52 qw422016.N().S(`
  1. `) //line templates/stuff.qtpl:53 qw422016.E().S(name) //line templates/stuff.qtpl:53 qw422016.N().S(`
  2. `) //line templates/stuff.qtpl:54 } //line templates/stuff.qtpl:54 qw422016.N().S(`

Moderators

    `) //line templates/stuff.qtpl:58 for _, name := range moderators { //line templates/stuff.qtpl:58 qw422016.N().S(`
  1. `) //line templates/stuff.qtpl:59 qw422016.E().S(name) //line templates/stuff.qtpl:59 qw422016.N().S(`
  2. `) //line templates/stuff.qtpl:60 } //line templates/stuff.qtpl:60 qw422016.N().S(`

Editors

    `) //line templates/stuff.qtpl:64 for _, name := range editors { //line templates/stuff.qtpl:64 qw422016.N().S(`
  1. `) //line templates/stuff.qtpl:65 qw422016.E().S(name) //line templates/stuff.qtpl:65 qw422016.N().S(`
  2. `) //line templates/stuff.qtpl:66 } //line templates/stuff.qtpl:66 qw422016.N().S(`
`) //line templates/stuff.qtpl:70 } //line templates/stuff.qtpl:70 func WriteUserListHTML(qq422016 qtio422016.Writer) { //line templates/stuff.qtpl:70 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/stuff.qtpl:70 StreamUserListHTML(qw422016) //line templates/stuff.qtpl:70 qt422016.ReleaseWriter(qw422016) //line templates/stuff.qtpl:70 } //line templates/stuff.qtpl:70 func UserListHTML() string { //line templates/stuff.qtpl:70 qb422016 := qt422016.AcquireByteBuffer() //line templates/stuff.qtpl:70 WriteUserListHTML(qb422016) //line templates/stuff.qtpl:70 qs422016 := string(qb422016.B) //line templates/stuff.qtpl:70 qt422016.ReleaseByteBuffer(qb422016) //line templates/stuff.qtpl:70 return qs422016 //line templates/stuff.qtpl:70 } //line templates/stuff.qtpl:72 func StreamHyphaListHTML(qw422016 *qt422016.Writer, tbody string, pageCount int) { //line templates/stuff.qtpl:72 qw422016.N().S(`

List of hyphae

This wiki has `) //line templates/stuff.qtpl:76 qw422016.N().D(pageCount) //line templates/stuff.qtpl:76 qw422016.N().S(` hyphae.

`) //line templates/stuff.qtpl:85 qw422016.N().S(tbody) //line templates/stuff.qtpl:85 qw422016.N().S(`
Full name Binary part type
`) //line templates/stuff.qtpl:90 } //line templates/stuff.qtpl:90 func WriteHyphaListHTML(qq422016 qtio422016.Writer, tbody string, pageCount int) { //line templates/stuff.qtpl:90 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/stuff.qtpl:90 StreamHyphaListHTML(qw422016, tbody, pageCount) //line templates/stuff.qtpl:90 qt422016.ReleaseWriter(qw422016) //line templates/stuff.qtpl:90 } //line templates/stuff.qtpl:90 func HyphaListHTML(tbody string, pageCount int) string { //line templates/stuff.qtpl:90 qb422016 := qt422016.AcquireByteBuffer() //line templates/stuff.qtpl:90 WriteHyphaListHTML(qb422016, tbody, pageCount) //line templates/stuff.qtpl:90 qs422016 := string(qb422016.B) //line templates/stuff.qtpl:90 qt422016.ReleaseByteBuffer(qb422016) //line templates/stuff.qtpl:90 return qs422016 //line templates/stuff.qtpl:90 } //line templates/stuff.qtpl:92 func StreamHyphaListRowHTML(qw422016 *qt422016.Writer, hyphaName, binaryMime string, binaryPresent bool) { //line templates/stuff.qtpl:92 qw422016.N().S(` `) //line templates/stuff.qtpl:94 qw422016.E().S(hyphaName) //line templates/stuff.qtpl:94 qw422016.N().S(` `) //line templates/stuff.qtpl:95 if binaryPresent { //line templates/stuff.qtpl:95 qw422016.N().S(` `) //line templates/stuff.qtpl:96 qw422016.E().S(binaryMime) //line templates/stuff.qtpl:96 qw422016.N().S(` `) //line templates/stuff.qtpl:97 } else { //line templates/stuff.qtpl:97 qw422016.N().S(` `) //line templates/stuff.qtpl:99 } //line templates/stuff.qtpl:99 qw422016.N().S(` `) //line templates/stuff.qtpl:101 } //line templates/stuff.qtpl:101 func WriteHyphaListRowHTML(qq422016 qtio422016.Writer, hyphaName, binaryMime string, binaryPresent bool) { //line templates/stuff.qtpl:101 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/stuff.qtpl:101 StreamHyphaListRowHTML(qw422016, hyphaName, binaryMime, binaryPresent) //line templates/stuff.qtpl:101 qt422016.ReleaseWriter(qw422016) //line templates/stuff.qtpl:101 } //line templates/stuff.qtpl:101 func HyphaListRowHTML(hyphaName, binaryMime string, binaryPresent bool) string { //line templates/stuff.qtpl:101 qb422016 := qt422016.AcquireByteBuffer() //line templates/stuff.qtpl:101 WriteHyphaListRowHTML(qb422016, hyphaName, binaryMime, binaryPresent) //line templates/stuff.qtpl:101 qs422016 := string(qb422016.B) //line templates/stuff.qtpl:101 qt422016.ReleaseByteBuffer(qb422016) //line templates/stuff.qtpl:101 return qs422016 //line templates/stuff.qtpl:101 } //line templates/stuff.qtpl:103 func StreamAboutHTML(qw422016 *qt422016.Writer) { //line templates/stuff.qtpl:103 qw422016.N().S(`

About `) //line templates/stuff.qtpl:107 qw422016.E().S(util.SiteName) //line templates/stuff.qtpl:107 qw422016.N().S(`

See /list for information about hyphae on this wiki.

`) //line templates/stuff.qtpl:125 } //line templates/stuff.qtpl:125 func WriteAboutHTML(qq422016 qtio422016.Writer) { //line templates/stuff.qtpl:125 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/stuff.qtpl:125 StreamAboutHTML(qw422016) //line templates/stuff.qtpl:125 qt422016.ReleaseWriter(qw422016) //line templates/stuff.qtpl:125 } //line templates/stuff.qtpl:125 func AboutHTML() string { //line templates/stuff.qtpl:125 qb422016 := qt422016.AcquireByteBuffer() //line templates/stuff.qtpl:125 WriteAboutHTML(qb422016) //line templates/stuff.qtpl:125 qs422016 := string(qb422016.B) //line templates/stuff.qtpl:125 qt422016.ReleaseByteBuffer(qb422016) //line templates/stuff.qtpl:125 return qs422016 //line templates/stuff.qtpl:125 }