1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| {% import ( "{{{ .Package }}}/app" "{{{ .Package }}}/app/controller/cutil" "{{{ .Package }}}/app/lib/exec" "{{{ .Package }}}/app/util" "{{{ .Package }}}/views/components" "{{{ .Package }}}/views/layout" ) %}
{% code type List struct { layout.Basic Execs exec.Execs } %}
{% func (p *List) Body(as *app.State, ps *cutil.PageState) %} <div class="card"> <div class="right"><a href="/admin/exec/new" title="start a new process">{%= components.SVGRefIcon(`plus`, ps) %}</a></div> <h3>{%= components.SVGRefIcon(`terminal`, ps) %} {%s util.StringPlural(len(p.Execs), "Process") %}</h3> {%= Table(p.Execs, as, ps) %} </div> {% endfunc %}
|