// 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/util" //line views/stuff.qtpl:7 import "github.com/bouncepaw/mycorrhiza/l18n" //line views/stuff.qtpl:9 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/stuff.qtpl:9 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/stuff.qtpl:9 func StreamTitleSearch(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) { //line views/stuff.qtpl:9 qw422016.N().S(`

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

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

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

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

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

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

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

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

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

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

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

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

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