Export the reviewed allowlisted snapshot from private source commit 05928cebd01b586cf9e9d4b8c8537a7605a6068c. This records the exact candidate, bounded capacity result, stateful migration scratch requirement, authenticated batch identity proof, and immediate live acceptance evidence. AI-Assisted: OpenAI Codex Signed-off-by: Cole Speelman <crspeelman@gmail.com>
25 lines
775 B
Plaintext
25 lines
775 B
Plaintext
<?sando go
|
|
package site
|
|
|
|
func ResultTable(view TableView)
|
|
?>
|
|
<?# SPDX-License-Identifier: AGPL-3.0-only ?>
|
|
<div class="table-scroll" tabindex="0" role="region" aria-label="<?= view.Caption ?>">
|
|
<table>
|
|
<caption><?= view.Caption ?></caption>
|
|
<thead><tr>
|
|
<? for _, column := range view.Columns { ?>
|
|
<th scope="col"><?= column.Label ?><? if column.Unit != "" { ?> <span class="unit">(<?= column.Unit ?>)</span><? } ?></th>
|
|
<? } ?>
|
|
</tr></thead>
|
|
<tbody>
|
|
<? for _, row := range view.Rows { ?>
|
|
<tr><? for _, value := range row.Values { ?><td><?= value ?></td><? } ?></tr>
|
|
<? } ?>
|
|
<? if len(view.Rows) == 0 { ?>
|
|
<tr><td colspan="<?= len(view.Columns) ?>"><?= view.Empty ?></td></tr>
|
|
<? } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|