github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/verror/NotFound.html.go (about)

     1  // Code generated by qtc from "NotFound.html". DO NOT EDIT.
     2  // See https://github.com/valyala/quicktemplate for details.
     3  
     4  // <!-- Content managed by Project Forge, see [projectforge.md] for details. -->
     5  
     6  //line views/verror/NotFound.html:2
     7  package verror
     8  
     9  //line views/verror/NotFound.html:2
    10  import (
    11  	"github.com/kyleu/dbaudit/app"
    12  	"github.com/kyleu/dbaudit/app/controller/cutil"
    13  	"github.com/kyleu/dbaudit/views/layout"
    14  )
    15  
    16  //line views/verror/NotFound.html:8
    17  import (
    18  	qtio422016 "io"
    19  
    20  	qt422016 "github.com/valyala/quicktemplate"
    21  )
    22  
    23  //line views/verror/NotFound.html:8
    24  var (
    25  	_ = qtio422016.Copy
    26  	_ = qt422016.AcquireByteBuffer
    27  )
    28  
    29  //line views/verror/NotFound.html:8
    30  type NotFound struct {
    31  	layout.Basic
    32  	Path string
    33  }
    34  
    35  //line views/verror/NotFound.html:13
    36  func (p *NotFound) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState) {
    37  //line views/verror/NotFound.html:13
    38  	qw422016.N().S(`
    39    <div class="card">
    40      <h3>404</h3>
    41      <em>Page not found</em>
    42      <p>We can't find anything at <code>`)
    43  //line views/verror/NotFound.html:17
    44  	qw422016.E().S(p.Path)
    45  //line views/verror/NotFound.html:17
    46  	qw422016.N().S(`</code></p>
    47      <p>Sorry about that, maybe try the <a href="/">home page</a>?</p>
    48    </div>
    49  `)
    50  //line views/verror/NotFound.html:20
    51  }
    52  
    53  //line views/verror/NotFound.html:20
    54  func (p *NotFound) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState) {
    55  //line views/verror/NotFound.html:20
    56  	qw422016 := qt422016.AcquireWriter(qq422016)
    57  //line views/verror/NotFound.html:20
    58  	p.StreamBody(qw422016, as, ps)
    59  //line views/verror/NotFound.html:20
    60  	qt422016.ReleaseWriter(qw422016)
    61  //line views/verror/NotFound.html:20
    62  }
    63  
    64  //line views/verror/NotFound.html:20
    65  func (p *NotFound) Body(as *app.State, ps *cutil.PageState) string {
    66  //line views/verror/NotFound.html:20
    67  	qb422016 := qt422016.AcquireByteBuffer()
    68  //line views/verror/NotFound.html:20
    69  	p.WriteBody(qb422016, as, ps)
    70  //line views/verror/NotFound.html:20
    71  	qs422016 := string(qb422016.B)
    72  //line views/verror/NotFound.html:20
    73  	qt422016.ReleaseByteBuffer(qb422016)
    74  //line views/verror/NotFound.html:20
    75  	return qs422016
    76  //line views/verror/NotFound.html:20
    77  }