github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/vsandbox/List.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/app/lib/sandbox"
     6    "github.com/kyleu/dbaudit/views/layout"
     7  ) %}
     8  
     9  {% code type List struct { layout.Basic } %}
    10  
    11  {% func (p *List) Body(as *app.State, ps *cutil.PageState) %}
    12    <div class="card">
    13      <h3>Sandboxes</h3>
    14      <ul class="mt">
    15        {%- for _, s := range sandbox.AllSandboxes -%}
    16          <li><a href="/admin/sandbox/{%u s.Key %}">{%s s.Title %}</a></li>
    17        {%- endfor -%}
    18      </ul>
    19    </div>
    20  {% endfunc %}