Development
This commit is contained in:
parent
e8717710d4
commit
47a7c564ab
3 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@
|
|||
"type": "stat_card",
|
||||
"label": "DHCP Leases",
|
||||
"value": "%STAT_LEASE_COUNT%",
|
||||
"sub": "%STAT_LEASES_LINK%",
|
||||
"sub": "active leases",
|
||||
"variant": "accent"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -253,7 +253,6 @@ def collect_tokens(cfg):
|
|||
|
||||
lease_count = len(live_dhcp_leases())
|
||||
tokens['STAT_LEASE_COUNT'] = str(lease_count)
|
||||
tokens['STAT_LEASES_LINK'] = f'<a href="/dhcpleases">{lease_count} active lease{"s" if lease_count != 1 else ""}</a>'
|
||||
tokens['STAT_VLAN_COUNT'] = str(len(non_vpn_vlans))
|
||||
tokens['STAT_PUBLIC_IP'] = ip_str
|
||||
tokens['STAT_DDNS_HOSTNAME'] = domains_sub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue