// Code generated by qtc from "rename.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/rename.qtpl:1 package templates //line templates/rename.qtpl:1 import "net/http" // This dialog is to be shown to a user when they try to rename a hypha. //line templates/rename.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/rename.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/rename.qtpl:3 func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) { //line templates/rename.qtpl:3 qw422016.N().S(` `) //line templates/rename.qtpl:4 streamnavHTML(qw422016, rq, hyphaName, "rename-ask") //line templates/rename.qtpl:4 qw422016.N().S(`
`) //line templates/rename.qtpl:7 if isOld { //line templates/rename.qtpl:7 qw422016.N().S(`

Rename `) //line templates/rename.qtpl:9 qw422016.E().S(hyphaName) //line templates/rename.qtpl:9 qw422016.N().S(`

New name
Settings

If you rename this hypha, all incoming links and all relative outcoming links will break. You will also lose all history for the new name. Rename carefully.

`) //line templates/rename.qtpl:26 } else { //line templates/rename.qtpl:26 qw422016.N().S(` `) //line templates/rename.qtpl:27 streamcannotRenameDueToNonExistence(qw422016, hyphaName) //line templates/rename.qtpl:27 qw422016.N().S(` `) //line templates/rename.qtpl:28 } //line templates/rename.qtpl:28 qw422016.N().S(`
`) //line templates/rename.qtpl:31 } //line templates/rename.qtpl:31 func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) { //line templates/rename.qtpl:31 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/rename.qtpl:31 StreamRenameAskHTML(qw422016, rq, hyphaName, isOld) //line templates/rename.qtpl:31 qt422016.ReleaseWriter(qw422016) //line templates/rename.qtpl:31 } //line templates/rename.qtpl:31 func RenameAskHTML(rq *http.Request, hyphaName string, isOld bool) string { //line templates/rename.qtpl:31 qb422016 := qt422016.AcquireByteBuffer() //line templates/rename.qtpl:31 WriteRenameAskHTML(qb422016, rq, hyphaName, isOld) //line templates/rename.qtpl:31 qs422016 := string(qb422016.B) //line templates/rename.qtpl:31 qt422016.ReleaseByteBuffer(qb422016) //line templates/rename.qtpl:31 return qs422016 //line templates/rename.qtpl:31 } //line templates/rename.qtpl:33 func streamcannotRenameDueToNonExistence(qw422016 *qt422016.Writer, hyphaName string) { //line templates/rename.qtpl:33 qw422016.N().S(`

Cannot rename `) //line templates/rename.qtpl:35 qw422016.E().S(hyphaName) //line templates/rename.qtpl:35 qw422016.N().S(`

This hypha does not exist.

Go back

`) //line templates/rename.qtpl:39 } //line templates/rename.qtpl:39 func writecannotRenameDueToNonExistence(qq422016 qtio422016.Writer, hyphaName string) { //line templates/rename.qtpl:39 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/rename.qtpl:39 streamcannotRenameDueToNonExistence(qw422016, hyphaName) //line templates/rename.qtpl:39 qt422016.ReleaseWriter(qw422016) //line templates/rename.qtpl:39 } //line templates/rename.qtpl:39 func cannotRenameDueToNonExistence(hyphaName string) string { //line templates/rename.qtpl:39 qb422016 := qt422016.AcquireByteBuffer() //line templates/rename.qtpl:39 writecannotRenameDueToNonExistence(qb422016, hyphaName) //line templates/rename.qtpl:39 qs422016 := string(qb422016.B) //line templates/rename.qtpl:39 qt422016.ReleaseByteBuffer(qb422016) //line templates/rename.qtpl:39 return qs422016 //line templates/rename.qtpl:39 }