Development
This commit is contained in:
parent
2e4921ab73
commit
49dd4a2cf8
3 changed files with 5 additions and 4 deletions
|
|
@ -1003,10 +1003,11 @@ def build_table_cell(value, render_fn, col_class='', field='', row_idx=None,
|
|||
mini = s[0] if s else ''
|
||||
if not s:
|
||||
return ''
|
||||
tip_attr = f' data-tooltip="{e(tooltip)}"' if tooltip else ''
|
||||
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 (
|
||||
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-short">{e(short)}</span>'
|
||||
f'<span class="tl-min">{e(mini)}</span>'
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"class": "col-mono"
|
||||
},
|
||||
{
|
||||
"label": "Used By",
|
||||
"label": "Used By VLAN(s)",
|
||||
"field": "used_by",
|
||||
"render": "tag_list"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ def collect_tokens(cfg):
|
|||
for v in vlans if v.get('name')
|
||||
)
|
||||
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>'
|
||||
) if vlan_checkboxes else ''
|
||||
content = factory.load_json(f'{factory.PAGES_DIR}/dnsblocking/content.json')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue