// Code generated by qtc from "stuff.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line views/stuff.qtpl:1 package views //line views/stuff.qtpl:1 import "fmt" //line views/stuff.qtpl:2 import "path/filepath" //line views/stuff.qtpl:4 import "github.com/bouncepaw/mycorrhiza/cfg" //line views/stuff.qtpl:5 import "github.com/bouncepaw/mycorrhiza/hyphae" //line views/stuff.qtpl:6 import "github.com/bouncepaw/mycorrhiza/user" //line views/stuff.qtpl:7 import "github.com/bouncepaw/mycorrhiza/util" //line views/stuff.qtpl:8 import "github.com/bouncepaw/mycorrhiza/l18n" //line views/stuff.qtpl:10 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/stuff.qtpl:10 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/stuff.qtpl:10 func StreamBase(qw422016 *qt422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) { //line views/stuff.qtpl:10 qw422016.N().S(` `) //line views/stuff.qtpl:16 qw422016.E().S(title) //line views/stuff.qtpl:16 qw422016.N().S(` `) //line views/stuff.qtpl:20 for _, el := range headElements { //line views/stuff.qtpl:20 qw422016.N().S(el) //line views/stuff.qtpl:20 } //line views/stuff.qtpl:20 qw422016.N().S(`
`) //line views/stuff.qtpl:68 qw422016.N().S(body) //line views/stuff.qtpl:68 qw422016.N().S(` `) //line views/stuff.qtpl:80 streamcommonScripts(qw422016) //line views/stuff.qtpl:80 qw422016.N().S(` `) //line views/stuff.qtpl:84 } //line views/stuff.qtpl:84 func WriteBase(qq422016 qtio422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) { //line views/stuff.qtpl:84 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:84 StreamBase(qw422016, title, body, lc, u, headElements...) //line views/stuff.qtpl:84 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:84 } //line views/stuff.qtpl:84 func Base(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) string { //line views/stuff.qtpl:84 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:84 WriteBase(qb422016, title, body, lc, u, headElements...) //line views/stuff.qtpl:84 qs422016 := string(qb422016.B) //line views/stuff.qtpl:84 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:84 return qs422016 //line views/stuff.qtpl:84 } //line views/stuff.qtpl:86 func StreamTitleSearch(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) { //line views/stuff.qtpl:86 qw422016.N().S(`

`) //line views/stuff.qtpl:89 qw422016.E().S(lc.Get("ui.search_results_query", &l18n.Replacements{"query": query})) //line views/stuff.qtpl:89 qw422016.N().S(`

`) //line views/stuff.qtpl:90 qw422016.E().S(lc.Get("ui.search_results_desc")) //line views/stuff.qtpl:90 qw422016.N().S(`

`) //line views/stuff.qtpl:99 } //line views/stuff.qtpl:99 func WriteTitleSearch(qq422016 qtio422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) { //line views/stuff.qtpl:99 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:99 StreamTitleSearch(qw422016, query, generator, lc) //line views/stuff.qtpl:99 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:99 } //line views/stuff.qtpl:99 func TitleSearch(query string, generator func(string) <-chan string, lc *l18n.Localizer) string { //line views/stuff.qtpl:99 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:99 WriteTitleSearch(qb422016, query, generator, lc) //line views/stuff.qtpl:99 qs422016 := string(qb422016.B) //line views/stuff.qtpl:99 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:99 return qs422016 //line views/stuff.qtpl:99 } //line views/stuff.qtpl:101 func StreamBacklinks(qw422016 *qt422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) { //line views/stuff.qtpl:101 qw422016.N().S(`

`) //line views/stuff.qtpl:104 qw422016.N().S(lc.Get( "ui.backlinks_heading", &l18n.Replacements{ "hypha_link": fmt.Sprintf( `%s`, hyphaName, util.BeautifulName(hyphaName), ), }, )) //line views/stuff.qtpl:113 qw422016.N().S(`

`) //line views/stuff.qtpl:114 qw422016.E().S(lc.Get("ui.backlinks_desc")) //line views/stuff.qtpl:114 qw422016.N().S(`

`) //line views/stuff.qtpl:124 } //line views/stuff.qtpl:124 func WriteBacklinks(qq422016 qtio422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) { //line views/stuff.qtpl:124 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:124 StreamBacklinks(qw422016, hyphaName, generator, lc) //line views/stuff.qtpl:124 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:124 } //line views/stuff.qtpl:124 func Backlinks(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) string { //line views/stuff.qtpl:124 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:124 WriteBacklinks(qb422016, hyphaName, generator, lc) //line views/stuff.qtpl:124 qs422016 := string(qb422016.B) //line views/stuff.qtpl:124 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:124 return qs422016 //line views/stuff.qtpl:124 } //line views/stuff.qtpl:126 func StreamHelp(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Localizer) { //line views/stuff.qtpl:126 qw422016.N().S(`
`) //line views/stuff.qtpl:130 qw422016.N().S(content) //line views/stuff.qtpl:130 qw422016.N().S(`
`) //line views/stuff.qtpl:133 qw422016.N().S(helpTopics(lang, lc)) //line views/stuff.qtpl:133 qw422016.N().S(`
`) //line views/stuff.qtpl:135 } //line views/stuff.qtpl:135 func WriteHelp(qq422016 qtio422016.Writer, content, lang string, lc *l18n.Localizer) { //line views/stuff.qtpl:135 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:135 StreamHelp(qw422016, content, lang, lc) //line views/stuff.qtpl:135 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:135 } //line views/stuff.qtpl:135 func Help(content, lang string, lc *l18n.Localizer) string { //line views/stuff.qtpl:135 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:135 WriteHelp(qb422016, content, lang, lc) //line views/stuff.qtpl:135 qs422016 := string(qb422016.B) //line views/stuff.qtpl:135 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:135 return qs422016 //line views/stuff.qtpl:135 } //line views/stuff.qtpl:137 func StreamHelpEmptyError(qw422016 *qt422016.Writer, lc *l18n.Localizer) { //line views/stuff.qtpl:137 qw422016.N().S(`

`) //line views/stuff.qtpl:138 qw422016.E().S(lc.Get("help.empty_error_title")) //line views/stuff.qtpl:138 qw422016.N().S(`

`) //line views/stuff.qtpl:139 qw422016.E().S(lc.Get("help.empty_error_line_1")) //line views/stuff.qtpl:139 qw422016.N().S(`

`) //line views/stuff.qtpl:140 qw422016.E().S(lc.Get("help.empty_error_line_2a")) //line views/stuff.qtpl:140 qw422016.N().S(` `) //line views/stuff.qtpl:140 qw422016.E().S(lc.Get("help.empty_error_link")) //line views/stuff.qtpl:140 qw422016.N().S(` `) //line views/stuff.qtpl:140 qw422016.E().S(lc.Get("help.empty_error_line_2b")) //line views/stuff.qtpl:140 qw422016.N().S(`

`) //line views/stuff.qtpl:141 } //line views/stuff.qtpl:141 func WriteHelpEmptyError(qq422016 qtio422016.Writer, lc *l18n.Localizer) { //line views/stuff.qtpl:141 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:141 StreamHelpEmptyError(qw422016, lc) //line views/stuff.qtpl:141 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:141 } //line views/stuff.qtpl:141 func HelpEmptyError(lc *l18n.Localizer) string { //line views/stuff.qtpl:141 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:141 WriteHelpEmptyError(qb422016, lc) //line views/stuff.qtpl:141 qs422016 := string(qb422016.B) //line views/stuff.qtpl:141 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:141 return qs422016 //line views/stuff.qtpl:141 } //line views/stuff.qtpl:143 func StreamHyphaList(qw422016 *qt422016.Writer, lc *l18n.Localizer) { //line views/stuff.qtpl:143 qw422016.N().S(`

`) //line views/stuff.qtpl:146 qw422016.E().S(lc.Get("ui.list_heading")) //line views/stuff.qtpl:146 qw422016.N().S(`

`) //line views/stuff.qtpl:147 qw422016.E().S(lc.GetPlural("ui.list_desc", hyphae.Count())) //line views/stuff.qtpl:147 qw422016.N().S(`

`) //line views/stuff.qtpl:174 } //line views/stuff.qtpl:174 func WriteHyphaList(qq422016 qtio422016.Writer, lc *l18n.Localizer) { //line views/stuff.qtpl:174 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:174 StreamHyphaList(qw422016, lc) //line views/stuff.qtpl:174 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:174 } //line views/stuff.qtpl:174 func HyphaList(lc *l18n.Localizer) string { //line views/stuff.qtpl:174 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:174 WriteHyphaList(qb422016, lc) //line views/stuff.qtpl:174 qs422016 := string(qb422016.B) //line views/stuff.qtpl:174 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:174 return qs422016 //line views/stuff.qtpl:174 } //line views/stuff.qtpl:176 func streamcommonScripts(qw422016 *qt422016.Writer) { //line views/stuff.qtpl:176 qw422016.N().S(` `) //line views/stuff.qtpl:177 for _, scriptPath := range cfg.CommonScripts { //line views/stuff.qtpl:177 qw422016.N().S(` `) //line views/stuff.qtpl:179 } //line views/stuff.qtpl:179 qw422016.N().S(` `) //line views/stuff.qtpl:180 } //line views/stuff.qtpl:180 func writecommonScripts(qq422016 qtio422016.Writer) { //line views/stuff.qtpl:180 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:180 streamcommonScripts(qw422016) //line views/stuff.qtpl:180 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:180 } //line views/stuff.qtpl:180 func commonScripts() string { //line views/stuff.qtpl:180 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:180 writecommonScripts(qb422016) //line views/stuff.qtpl:180 qs422016 := string(qb422016.B) //line views/stuff.qtpl:180 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:180 return qs422016 //line views/stuff.qtpl:180 }