github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/vpage/Load.html (about) 1 <!-- Content managed by Project Forge, see [projectforge.md] for details. --> 2 {% import ( 3 "github.com/kyleu/dbaudit/app" 4 "github.com/kyleu/dbaudit/app/controller/cutil" 5 "github.com/kyleu/dbaudit/views/layout" 6 ) %} 7 8 {% code type Load struct { 9 layout.Basic 10 URL string 11 Title string 12 Message string 13 HideInstructions bool 14 } %} 15 16 {% func (p *Load) Body(as *app.State, ps *cutil.PageState) %} 17 {%- code 18 if p.Message == "" { 19 p.Message = "Please wait as your request is processed..." 20 } 21 -%} 22 <div class="card"> 23 <h3>{%s p.Title %}</h3> 24 <p>{%s p.Message %}</p> 25 {%- if !p.HideInstructions -%} 26 <div class="mt"><em>Please avoid refreshing the browser or navigating away, your page is loading</em></div> 27 {%- endif -%} 28 </div> 29 <meta http-equiv="refresh" content="0; url={%s p.URL %}"> 30 {% endfunc %}