Development
This commit is contained in:
parent
33ec9e7f1c
commit
0cec7d69c9
12 changed files with 124 additions and 92 deletions
|
|
@ -839,10 +839,10 @@ def load_datasource(spec):
|
|||
|
||||
|
||||
def collect_layout_tokens(cfg):
|
||||
import license
|
||||
import settings as settings
|
||||
net = cfg.get('network_interfaces', {})
|
||||
return {
|
||||
'GENERAL_LAN_INTERFACE': str(net.get('lan_interface', '-')),
|
||||
'VPN_VLAN_COUNT': str(sum(1 for v in cfg.get('vlans', []) if v.get('is_vpn'))),
|
||||
'PRO_LICENSE_JS': 'true' if license.is_pro() else 'false',
|
||||
'PRO_LICENSE_JS': 'true' if settings.is_pro() else 'false',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue