1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| {% import ( "{{{ .Package }}}/app" "{{{ .Package }}}/app/controller/cutil" "{{{ .Package }}}/app/lib/sandbox" "{{{ .Package }}}/views/layout" ) %}
{% code type List struct { layout.Basic } %}
{% func (p *List) Body(as *app.State, ps *cutil.PageState) %} <div class="card"> <h3>Sandboxes</h3> <ul class="mt"> {%- for _, s := range sandbox.AllSandboxes -%} <li><a href="/admin/sandbox/{%u s.Key %}">{%s s.Title %}</a></li> {%- endfor -%} </ul> </div> {% endfunc %}
|