github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/vsandbox/List.html.go (about) 1 // Code generated by qtc from "List.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/vsandbox/List.html:2 7 package vsandbox 8 9 //line views/vsandbox/List.html:2 10 import ( 11 "github.com/kyleu/dbaudit/app" 12 "github.com/kyleu/dbaudit/app/controller/cutil" 13 "github.com/kyleu/dbaudit/app/lib/sandbox" 14 "github.com/kyleu/dbaudit/views/layout" 15 ) 16 17 //line views/vsandbox/List.html:9 18 import ( 19 qtio422016 "io" 20 21 qt422016 "github.com/valyala/quicktemplate" 22 ) 23 24 //line views/vsandbox/List.html:9 25 var ( 26 _ = qtio422016.Copy 27 _ = qt422016.AcquireByteBuffer 28 ) 29 30 //line views/vsandbox/List.html:9 31 type List struct{ layout.Basic } 32 33 //line views/vsandbox/List.html:11 34 func (p *List) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState) { 35 //line views/vsandbox/List.html:11 36 qw422016.N().S(` 37 <div class="card"> 38 <h3>Sandboxes</h3> 39 <ul class="mt"> 40 `) 41 //line views/vsandbox/List.html:15 42 for _, s := range sandbox.AllSandboxes { 43 //line views/vsandbox/List.html:15 44 qw422016.N().S(` <li><a href="/admin/sandbox/`) 45 //line views/vsandbox/List.html:16 46 qw422016.N().U(s.Key) 47 //line views/vsandbox/List.html:16 48 qw422016.N().S(`">`) 49 //line views/vsandbox/List.html:16 50 qw422016.E().S(s.Title) 51 //line views/vsandbox/List.html:16 52 qw422016.N().S(`</a></li> 53 `) 54 //line views/vsandbox/List.html:17 55 } 56 //line views/vsandbox/List.html:17 57 qw422016.N().S(` </ul> 58 </div> 59 `) 60 //line views/vsandbox/List.html:20 61 } 62 63 //line views/vsandbox/List.html:20 64 func (p *List) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState) { 65 //line views/vsandbox/List.html:20 66 qw422016 := qt422016.AcquireWriter(qq422016) 67 //line views/vsandbox/List.html:20 68 p.StreamBody(qw422016, as, ps) 69 //line views/vsandbox/List.html:20 70 qt422016.ReleaseWriter(qw422016) 71 //line views/vsandbox/List.html:20 72 } 73 74 //line views/vsandbox/List.html:20 75 func (p *List) Body(as *app.State, ps *cutil.PageState) string { 76 //line views/vsandbox/List.html:20 77 qb422016 := qt422016.AcquireByteBuffer() 78 //line views/vsandbox/List.html:20 79 p.WriteBody(qb422016, as, ps) 80 //line views/vsandbox/List.html:20 81 qs422016 := string(qb422016.B) 82 //line views/vsandbox/List.html:20 83 qt422016.ReleaseByteBuffer(qb422016) 84 //line views/vsandbox/List.html:20 85 return qs422016 86 //line views/vsandbox/List.html:20 87 }