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

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

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

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

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

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

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

`) //line views/stuff.qtpl:47 } //line views/stuff.qtpl:47 func WriteHelpEmptyError(qq422016 qtio422016.Writer, lc *l18n.Localizer) { //line views/stuff.qtpl:47 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:47 StreamHelpEmptyError(qw422016, lc) //line views/stuff.qtpl:47 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:47 } //line views/stuff.qtpl:47 func HelpEmptyError(lc *l18n.Localizer) string { //line views/stuff.qtpl:47 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:47 WriteHelpEmptyError(qb422016, 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 streamcommonScripts(qw422016 *qt422016.Writer) { //line views/stuff.qtpl:49 qw422016.N().S(` `) //line views/stuff.qtpl:50 for _, scriptPath := range cfg.CommonScripts { //line views/stuff.qtpl:50 qw422016.N().S(` `) //line views/stuff.qtpl:52 } //line views/stuff.qtpl:52 qw422016.N().S(` `) //line views/stuff.qtpl:53 } //line views/stuff.qtpl:53 func writecommonScripts(qq422016 qtio422016.Writer) { //line views/stuff.qtpl:53 qw422016 := qt422016.AcquireWriter(qq422016) //line views/stuff.qtpl:53 streamcommonScripts(qw422016) //line views/stuff.qtpl:53 qt422016.ReleaseWriter(qw422016) //line views/stuff.qtpl:53 } //line views/stuff.qtpl:53 func commonScripts() string { //line views/stuff.qtpl:53 qb422016 := qt422016.AcquireByteBuffer() //line views/stuff.qtpl:53 writecommonScripts(qb422016) //line views/stuff.qtpl:53 qs422016 := string(qb422016.B) //line views/stuff.qtpl:53 qt422016.ReleaseByteBuffer(qb422016) //line views/stuff.qtpl:53 return qs422016 //line views/stuff.qtpl:53 }