Use Lua Kepler syntax everywhere. Needs the most recent patched FTL that enforces Kepler syntax for all Lua scripts to work as expected.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-22 19:19:15 +02:00
parent cd6f292a92
commit e8c259d720
4 changed files with 56 additions and 58 deletions

View File

@@ -20,7 +20,7 @@ mg.include('header.lp','r')
<script src="<?=pihole.fileversion('scripts/vendor/chart.min.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/vendor/chartjs-adapter-moment.js')?>"></script>
</head>
<body class="<?=pihole.webtheme()?> hold-transition sidebar-mini<? if pihole.boxedlayout() then mg.write("layout-boxed") end ?> logged-in">
<body class="<?=pihole.webtheme()?> hold-transition sidebar-mini<? if pihole.boxedlayout() then ?>layout-boxed<? end ?> logged-in">
<noscript>
<!-- JS Warning -->
<div>
@@ -53,18 +53,18 @@ mg.include('header.lp','r')
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<? if startsWith(scriptname, 'settings-') then mg.write('\
<li class="nav-item">\
<p class="navbar-text">\
Settings level: <select id="settings-level" class="form-control input-sm">\
<option value="0">Basic</option>\
<option value="1">Advanced</option>\
<option value="2">Expert</option>\
</select>\
</p>\
</li>\
') end ?>
<li<? if string.len(hostname) == 0 then mg.write(' class="hidden"') end ?>>
<? if startsWith(scriptname, 'settings-') then ?>
<li class="nav-item">
<p class="navbar-text">
Settings level: <select id="settings-level" class="form-control input-sm">
<option value="0">Basic</option>
<option value="1">Advanced</option>
<option value="2">Expert</option>
</select>
</p>
</li>
<? end ?>
<li<? if string.len(hostname) == 0 then ?> class="hidden"<? end ?>>
<p class="navbar-text">
<span class="hidden-xs">hostname:</span>
<code><?=hostname?></code>