Development

This commit is contained in:
Matthew Grotke 2026-06-09 02:30:30 -04:00
parent 2e4921ab73
commit 49dd4a2cf8
3 changed files with 5 additions and 4 deletions

View file

@ -1003,10 +1003,11 @@ def build_table_cell(value, render_fn, col_class='', field='', row_idx=None,
mini = s[0] if s else '' mini = s[0] if s else ''
if not s: if not s:
return '' return ''
tip_attr = f' data-tooltip="{e(tooltip)}"' if tooltip else ''
if prefer_short: if prefer_short:
return f'<span class="tag" data-tooltip="{e(tooltip)}">{e(short)}</span>' return f'<span class="tag"{tip_attr}>{e(short)}</span>'
return ( return (
f'<span class="tag" data-tooltip="{e(tooltip)}">' f'<span class="tag"{tip_attr}>'
f'<span class="tl-full">{e(s)}</span>' f'<span class="tl-full">{e(s)}</span>'
f'<span class="tl-short">{e(short)}</span>' f'<span class="tl-short">{e(short)}</span>'
f'<span class="tl-min">{e(mini)}</span>' f'<span class="tl-min">{e(mini)}</span>'

View file

@ -38,7 +38,7 @@
"class": "col-mono" "class": "col-mono"
}, },
{ {
"label": "Used By", "label": "Used By VLAN(s)",
"field": "used_by", "field": "used_by",
"render": "tag_list" "render": "tag_list"
} }

View file

@ -108,7 +108,7 @@ def collect_tokens(cfg):
for v in vlans if v.get('name') for v in vlans if v.get('name')
) )
tokens['VLAN_USED_BY_CHECKBOXES'] = ( tokens['VLAN_USED_BY_CHECKBOXES'] = (
f'<div class="form-group"><label class="form-label">Used By</label>' f'<div class="form-group"><label class="form-label">Used By VLAN(s)</label>'
f'<div>{vlan_checkboxes}</div></div>' f'<div>{vlan_checkboxes}</div></div>'
) if vlan_checkboxes else '' ) if vlan_checkboxes else ''
content = factory.load_json(f'{factory.PAGES_DIR}/dnsblocking/content.json') content = factory.load_json(f'{factory.PAGES_DIR}/dnsblocking/content.json')