Files
observatory/internal/site/result_table.sando
T
gamertan 92a66db3df docs: publish Preview 19 dogfood evidence
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>
2026-08-18 21:47:08 -04:00

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>