Development

This commit is contained in:
Matthew Grotke 2026-05-25 15:09:46 -04:00
parent 22c18d9edd
commit b63aed53fc

View file

@ -596,11 +596,14 @@ def collect_tokens():
rows = ''
for _uuid, ts, cmd, user, desc in pending_items:
dt_str = datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M')
label = e(desc) if desc else e(cmd)
rows += (f'<tr>'
f'<td class="table-cell"><input type="checkbox" name="selected_uuids" value="{e(_uuid)}"/></td>'
f'<td class="table-cell">{e(dt_str)}</td>'
f'<td class="table-cell">{label}</td>'
f'<td class="table-cell">{e(cmd)}</td>'
f'<td class="table-cell">{e(desc)}</td>'
f'<td class="table-cell"></td>'
f'<td class="table-cell"></td>'
f'<td class="table-cell"></td>'
f'<td class="table-cell">{e(user)}</td>'
f'</tr>')
select_all = (
@ -612,7 +615,11 @@ def collect_tokens():
'<thead><tr>'
f'<th class="table-header">{select_all}</th>'
'<th class="table-header">Time</th>'
'<th class="table-header">Change</th>'
'<th class="table-header">Action</th>'
'<th class="table-header">Description</th>'
'<th class="table-header">Before</th>'
'<th class="table-header">After</th>'
'<th class="table-header">Snapshot</th>'
'<th class="table-header">User</th>'
'</tr></thead>'
f'<tbody>{rows}</tbody>'