176 lines
3.7 KiB
Go
176 lines
3.7 KiB
Go
// This file is automatically generated by qtc from "500.qtpl".
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
//line 500.qtpl:1
|
|
package templates
|
|
|
|
//line 500.qtpl:1
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line 500.qtpl:1
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line 500.qtpl:2
|
|
type Error500Page struct {
|
|
Message string
|
|
Error string
|
|
}
|
|
|
|
//line 500.qtpl:8
|
|
func (p *Error500Page) StreamTitle(qw422016 *qt422016.Writer) {
|
|
//line 500.qtpl:8
|
|
qw422016.N().S(`
|
|
500
|
|
`)
|
|
//line 500.qtpl:10
|
|
}
|
|
|
|
//line 500.qtpl:10
|
|
func (p *Error500Page) WriteTitle(qq422016 qtio422016.Writer) {
|
|
//line 500.qtpl:10
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line 500.qtpl:10
|
|
p.StreamTitle(qw422016)
|
|
//line 500.qtpl:10
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line 500.qtpl:10
|
|
}
|
|
|
|
//line 500.qtpl:10
|
|
func (p *Error500Page) Title() string {
|
|
//line 500.qtpl:10
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line 500.qtpl:10
|
|
p.WriteTitle(qb422016)
|
|
//line 500.qtpl:10
|
|
qs422016 := string(qb422016.B)
|
|
//line 500.qtpl:10
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line 500.qtpl:10
|
|
return qs422016
|
|
//line 500.qtpl:10
|
|
}
|
|
|
|
//line 500.qtpl:12
|
|
func (p *Error500Page) StreamStylesheets(qw422016 *qt422016.Writer) {
|
|
//line 500.qtpl:12
|
|
qw422016.N().S(`
|
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
|
|
`)
|
|
//line 500.qtpl:14
|
|
}
|
|
|
|
//line 500.qtpl:14
|
|
func (p *Error500Page) WriteStylesheets(qq422016 qtio422016.Writer) {
|
|
//line 500.qtpl:14
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line 500.qtpl:14
|
|
p.StreamStylesheets(qw422016)
|
|
//line 500.qtpl:14
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line 500.qtpl:14
|
|
}
|
|
|
|
//line 500.qtpl:14
|
|
func (p *Error500Page) Stylesheets() string {
|
|
//line 500.qtpl:14
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line 500.qtpl:14
|
|
p.WriteStylesheets(qb422016)
|
|
//line 500.qtpl:14
|
|
qs422016 := string(qb422016.B)
|
|
//line 500.qtpl:14
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line 500.qtpl:14
|
|
return qs422016
|
|
//line 500.qtpl:14
|
|
}
|
|
|
|
//line 500.qtpl:16
|
|
func (p *Error500Page) StreamScripts(qw422016 *qt422016.Writer) {
|
|
//line 500.qtpl:16
|
|
qw422016.N().S(`
|
|
`)
|
|
//line 500.qtpl:17
|
|
}
|
|
|
|
//line 500.qtpl:17
|
|
func (p *Error500Page) WriteScripts(qq422016 qtio422016.Writer) {
|
|
//line 500.qtpl:17
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line 500.qtpl:17
|
|
p.StreamScripts(qw422016)
|
|
//line 500.qtpl:17
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line 500.qtpl:17
|
|
}
|
|
|
|
//line 500.qtpl:17
|
|
func (p *Error500Page) Scripts() string {
|
|
//line 500.qtpl:17
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line 500.qtpl:17
|
|
p.WriteScripts(qb422016)
|
|
//line 500.qtpl:17
|
|
qs422016 := string(qb422016.B)
|
|
//line 500.qtpl:17
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line 500.qtpl:17
|
|
return qs422016
|
|
//line 500.qtpl:17
|
|
}
|
|
|
|
//line 500.qtpl:19
|
|
func (p *Error500Page) StreamBody(qw422016 *qt422016.Writer) {
|
|
//line 500.qtpl:19
|
|
qw422016.N().S(`
|
|
<div class="container">
|
|
<h1>Error: 500</h1>
|
|
<p>`)
|
|
//line 500.qtpl:22
|
|
qw422016.E().S(p.Message)
|
|
//line 500.qtpl:22
|
|
qw422016.N().S(`</p>
|
|
<p>`)
|
|
//line 500.qtpl:23
|
|
qw422016.E().S(p.Error)
|
|
//line 500.qtpl:23
|
|
qw422016.N().S(`</p>
|
|
</div>
|
|
`)
|
|
//line 500.qtpl:25
|
|
}
|
|
|
|
//line 500.qtpl:25
|
|
func (p *Error500Page) WriteBody(qq422016 qtio422016.Writer) {
|
|
//line 500.qtpl:25
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line 500.qtpl:25
|
|
p.StreamBody(qw422016)
|
|
//line 500.qtpl:25
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line 500.qtpl:25
|
|
}
|
|
|
|
//line 500.qtpl:25
|
|
func (p *Error500Page) Body() string {
|
|
//line 500.qtpl:25
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line 500.qtpl:25
|
|
p.WriteBody(qb422016)
|
|
//line 500.qtpl:25
|
|
qs422016 := string(qb422016.B)
|
|
//line 500.qtpl:25
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line 500.qtpl:25
|
|
return qs422016
|
|
//line 500.qtpl:25
|
|
}
|