github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/vsandbox/Run.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/components"
     6    "github.com/kyleu/dbaudit/views/layout"
     7  ) %}
     8  
     9  {% code type Run struct {
    10    layout.Basic
    11    Key string
    12    Title string
    13    Icon string
    14    Result any
    15  } %}
    16  
    17  {% func (p *Run) Body(as *app.State, ps *cutil.PageState) %}
    18    <div class="card">
    19      <h3>{%= components.SVGRefIcon(p.Icon, ps) %}{%s p.Title %}</h3>
    20      {%= components.JSON(p.Result) %}
    21    </div>
    22  {% endfunc %}
    23