// Code generated by qtc from "auth.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line views/auth.qtpl:1 package views //line views/auth.qtpl:1 import "net/http" //line views/auth.qtpl:2 import "github.com/bouncepaw/mycorrhiza/cfg" //line views/auth.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/auth.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/auth.qtpl:4 func StreamRegisterHTML(qw422016 *qt422016.Writer, rq *http.Request) { //line views/auth.qtpl:4 qw422016.N().S(`
`) //line views/auth.qtpl:8 if cfg.AllowRegistration { //line views/auth.qtpl:8 qw422016.N().S(` `) //line views/auth.qtpl:26 streamtelegramWidgetHTML(qw422016) //line views/auth.qtpl:26 qw422016.N().S(` `) //line views/auth.qtpl:27 } else if cfg.UseAuth { //line views/auth.qtpl:27 qw422016.N().S(`

Registrations are currently closed. Administrators can make an account for you by hand; contact them.

← Go back

`) //line views/auth.qtpl:30 } else { //line views/auth.qtpl:30 qw422016.N().S(`

Authentication is disabled. You can make edits anonymously.

← Go back

`) //line views/auth.qtpl:33 } //line views/auth.qtpl:33 qw422016.N().S(`
`) //line views/auth.qtpl:37 } //line views/auth.qtpl:37 func WriteRegisterHTML(qq422016 qtio422016.Writer, rq *http.Request) { //line views/auth.qtpl:37 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:37 StreamRegisterHTML(qw422016, rq) //line views/auth.qtpl:37 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:37 } //line views/auth.qtpl:37 func RegisterHTML(rq *http.Request) string { //line views/auth.qtpl:37 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:37 WriteRegisterHTML(qb422016, rq) //line views/auth.qtpl:37 qs422016 := string(qb422016.B) //line views/auth.qtpl:37 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:37 return qs422016 //line views/auth.qtpl:37 } //line views/auth.qtpl:39 func StreamLoginHTML(qw422016 *qt422016.Writer) { //line views/auth.qtpl:39 qw422016.N().S(`
`) //line views/auth.qtpl:43 if cfg.UseAuth { //line views/auth.qtpl:43 qw422016.N().S(` `) //line views/auth.qtpl:59 streamtelegramWidgetHTML(qw422016) //line views/auth.qtpl:59 qw422016.N().S(` `) //line views/auth.qtpl:60 } else { //line views/auth.qtpl:60 qw422016.N().S(`

Authentication is disabled. You can make edits anonymously.

← Go home

`) //line views/auth.qtpl:63 } //line views/auth.qtpl:63 qw422016.N().S(`
`) //line views/auth.qtpl:67 } //line views/auth.qtpl:67 func WriteLoginHTML(qq422016 qtio422016.Writer) { //line views/auth.qtpl:67 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:67 StreamLoginHTML(qw422016) //line views/auth.qtpl:67 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:67 } //line views/auth.qtpl:67 func LoginHTML() string { //line views/auth.qtpl:67 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:67 WriteLoginHTML(qb422016) //line views/auth.qtpl:67 qs422016 := string(qb422016.B) //line views/auth.qtpl:67 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:67 return qs422016 //line views/auth.qtpl:67 } // Telegram auth widget was requested by Yogurt. As you can see, we don't offer user administrators control over it. Of course we don't. //line views/auth.qtpl:70 func streamtelegramWidgetHTML(qw422016 *qt422016.Writer) { //line views/auth.qtpl:70 qw422016.N().S(` `) //line views/auth.qtpl:71 if cfg.TelegramEnabled { //line views/auth.qtpl:71 qw422016.N().S(`

You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.

`) //line views/auth.qtpl:74 } //line views/auth.qtpl:74 qw422016.N().S(` `) //line views/auth.qtpl:75 } //line views/auth.qtpl:75 func writetelegramWidgetHTML(qq422016 qtio422016.Writer) { //line views/auth.qtpl:75 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:75 streamtelegramWidgetHTML(qw422016) //line views/auth.qtpl:75 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:75 } //line views/auth.qtpl:75 func telegramWidgetHTML() string { //line views/auth.qtpl:75 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:75 writetelegramWidgetHTML(qb422016) //line views/auth.qtpl:75 qs422016 := string(qb422016.B) //line views/auth.qtpl:75 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:75 return qs422016 //line views/auth.qtpl:75 } //line views/auth.qtpl:77 func StreamLoginErrorHTML(qw422016 *qt422016.Writer, err string) { //line views/auth.qtpl:77 qw422016.N().S(`
`) //line views/auth.qtpl:81 switch err { //line views/auth.qtpl:82 case "unknown username": //line views/auth.qtpl:82 qw422016.N().S(`

Unknown username.

`) //line views/auth.qtpl:84 case "wrong password": //line views/auth.qtpl:84 qw422016.N().S(`

Wrong password.

`) //line views/auth.qtpl:86 default: //line views/auth.qtpl:86 qw422016.N().S(`

`) //line views/auth.qtpl:87 qw422016.E().S(err) //line views/auth.qtpl:87 qw422016.N().S(`

`) //line views/auth.qtpl:88 } //line views/auth.qtpl:88 qw422016.N().S(`

← Try again

`) //line views/auth.qtpl:93 } //line views/auth.qtpl:93 func WriteLoginErrorHTML(qq422016 qtio422016.Writer, err string) { //line views/auth.qtpl:93 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:93 StreamLoginErrorHTML(qw422016, err) //line views/auth.qtpl:93 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:93 } //line views/auth.qtpl:93 func LoginErrorHTML(err string) string { //line views/auth.qtpl:93 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:93 WriteLoginErrorHTML(qb422016, err) //line views/auth.qtpl:93 qs422016 := string(qb422016.B) //line views/auth.qtpl:93 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:93 return qs422016 //line views/auth.qtpl:93 } //line views/auth.qtpl:95 func StreamLogoutHTML(qw422016 *qt422016.Writer, can bool) { //line views/auth.qtpl:95 qw422016.N().S(`
`) //line views/auth.qtpl:99 if can { //line views/auth.qtpl:99 qw422016.N().S(`

Log out?

Confirm

Cancel

`) //line views/auth.qtpl:103 } else { //line views/auth.qtpl:103 qw422016.N().S(`

You cannot log out because you are not logged in.

Login

← Home

`) //line views/auth.qtpl:107 } //line views/auth.qtpl:107 qw422016.N().S(`
`) //line views/auth.qtpl:111 } //line views/auth.qtpl:111 func WriteLogoutHTML(qq422016 qtio422016.Writer, can bool) { //line views/auth.qtpl:111 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:111 StreamLogoutHTML(qw422016, can) //line views/auth.qtpl:111 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:111 } //line views/auth.qtpl:111 func LogoutHTML(can bool) string { //line views/auth.qtpl:111 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:111 WriteLogoutHTML(qb422016, can) //line views/auth.qtpl:111 qs422016 := string(qb422016.B) //line views/auth.qtpl:111 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:111 return qs422016 //line views/auth.qtpl:111 } //line views/auth.qtpl:113 func StreamLockHTML(qw422016 *qt422016.Writer) { //line views/auth.qtpl:113 qw422016.N().S(` 🔒 Locked

🔒

Locked

`) //line views/auth.qtpl:139 streamtelegramWidgetHTML(qw422016) //line views/auth.qtpl:139 qw422016.N().S(`
`) //line views/auth.qtpl:144 } //line views/auth.qtpl:144 func WriteLockHTML(qq422016 qtio422016.Writer) { //line views/auth.qtpl:144 qw422016 := qt422016.AcquireWriter(qq422016) //line views/auth.qtpl:144 StreamLockHTML(qw422016) //line views/auth.qtpl:144 qt422016.ReleaseWriter(qw422016) //line views/auth.qtpl:144 } //line views/auth.qtpl:144 func LockHTML() string { //line views/auth.qtpl:144 qb422016 := qt422016.AcquireByteBuffer() //line views/auth.qtpl:144 WriteLockHTML(qb422016) //line views/auth.qtpl:144 qs422016 := string(qb422016.B) //line views/auth.qtpl:144 qt422016.ReleaseByteBuffer(qb422016) //line views/auth.qtpl:144 return qs422016 //line views/auth.qtpl:144 }