blt/templates/benchmark/list.tmpl

28 lines
631 B
Cheetah
Raw Normal View History

2024-05-29 09:11:13 -04:00
{{ template "header" . }}
<div class="row">
<h2>Benchmark</h2>
<a href="/benchmark/create">Add new benchmark</a>
<table class="twelve columns">
<thead>
<tr>
<td>Name</td>
<td>Created at</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
2024-05-29 09:16:32 -04:00
{{ range $b := .benchmarks }}
2024-05-29 09:11:13 -04:00
<tr>
2024-05-29 09:16:32 -04:00
<td><a href="/benchmark/{{ $b.ID }}">{{ $b.Name }}</a></td>
2024-05-29 09:17:07 -04:00
<td>{{ $b.CreatedAt.Format "01/02/2006 15:04am" }}</td>
<td>{{ $b.UpdatedAt.Format "01/02/2006 15:04am" }}</td>
2024-05-29 09:11:13 -04:00
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ template "footer" . }}