Development

This commit is contained in:
Matthew Grotke 2026-06-03 16:04:51 -04:00
parent 8ab88094b3
commit 6ebf7027fd
4 changed files with 65 additions and 23 deletions

View file

@ -66,11 +66,7 @@ def collect_tokens(cfg):
done_ts_map = get_done_timestamps()
if all_groups:
is_manager = client_level() >= LEVEL_RANK['manager']
no_revert = set()
for g, _ in all_groups:
if g['reverts_group']:
no_revert.add(g['uuid'])
no_revert.add(g['reverts_group'])
no_revert = {g['uuid'] for g, _ in all_groups if g['reverted'] or g['reverts_group']}
hist_rows = ''
hist_onclick = (
'onclick="if(event.target.type!==\'checkbox\')'
@ -91,7 +87,11 @@ def collect_tokens(cfg):
else:
verb = 'Edited'
item = g.get('item_value') or ''
summary = f'{verb} {g["parent_path"]}: {item}' if item else f'{verb} {g["parent_path"]}'
summary_text = f'{verb} {g["parent_path"]}: {item}' if item else f'{verb} {g["parent_path"]}'
if g['reverted']:
summary = f'<span style="text-decoration:line-through;opacity:0.5">{e(summary_text)}</span> <span class="badge badge-disabled">Superseded</span>'
else:
summary = e(summary_text)
snap_tag = (
f'<div class="tag-list"><span class="tag" data-tooltip="{e(uuid)}" data-uuid="{e(uuid)}">'
f'<span class="tl-full">{e(uuid[:8])}</span>'
@ -105,7 +105,7 @@ def collect_tokens(cfg):
f'<tr class="row-expandable" data-uuid="{e(uuid)}" {hist_onclick}>'
f'<td class="table-cell"><input type="checkbox" name="selected_uuids" value="{e(uuid)}" {cb_attrs}/></td>'
f'<td class="table-cell">{e(dt_str)}</td>'
f'<td class="table-cell">{e(summary)}</td>'
f'<td class="table-cell">{summary}</td>'
f'<td class="table-cell">{build_snap_val(changes)}</td>'
f'<td class="table-cell">{snap_tag}</td>'
f'<td class="table-cell">{snap_user}</td>'