safesight/control/internal/web/ui/templates/templates.html
tian 98e375dc36 chore: 合并 safesight-control 仓库为 control/ 子目录
项目合并为单仓库:设备端(根) + 管理端(control/)。
两端 git 历史完整保留(git subtree 合并)。

git-subtree-dir: control
git-subtree-mainline: 923ab10d5c
git-subtree-split: 70738edb31
2026-08-02 11:13:26 +08:00

21 lines
503 B
HTML

{{define "templates"}}
<div class="card">
<h2>识别配置模板</h2>
<div class="table-wrap" style="margin-top:10px">
<table>
<thead>
<tr><th>模板名称</th><th>参数结构</th></tr>
</thead>
<tbody>
{{range .Templates}}
<tr>
<td><a class="mono" href="/templates/{{.Name}}">{{.Name}}</a></td>
<td><pre style="margin:0">{{json .Schema}}</pre></td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
{{end}}