mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Make use of the new format_path function to add the current page in body
This will allow us to target specific pages more easily Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
mg.include('scripts/lua/header.lp','r')
|
mg.include('scripts/lua/header.lp','r')
|
||||||
?>
|
?>
|
||||||
<body class="hold-transition layout-boxed login-page">
|
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>">
|
||||||
<div class="box login-box">
|
<div class="box login-box">
|
||||||
<section style="padding: 15px;">
|
<section style="padding: 15px;">
|
||||||
<h2 class="error-headline text-danger">403</h2>
|
<h2 class="error-headline text-danger">403</h2>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
mg.include('scripts/lua/header.lp','r')
|
mg.include('scripts/lua/header.lp','r')
|
||||||
?>
|
?>
|
||||||
<body class="hold-transition layout-boxed login-page">
|
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>">
|
||||||
<div class="box login-box">
|
<div class="box login-box">
|
||||||
<section style="padding: 15px;">
|
<section style="padding: 15px;">
|
||||||
<h2 class="error-headline text-yellow">404</h2>
|
<h2 class="error-headline text-yellow">404</h2>
|
||||||
|
|||||||
2
login.lp
2
login.lp
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
mg.include('scripts/lua/header.lp','r')
|
mg.include('scripts/lua/header.lp','r')
|
||||||
?>
|
?>
|
||||||
<body class="hold-transition layout-boxed login-page" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
|
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
|
||||||
<div class="box login-box" id="login-box">
|
<div class="box login-box" id="login-box">
|
||||||
<section style="padding: 15px;">
|
<section style="padding: 15px;">
|
||||||
<div class="login-logo">
|
<div class="login-logo">
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ mg.include('header.lp','r')
|
|||||||
<script src="<?=pihole.fileversion('vendor/bstreeview/bstreeview.min.js')?>"></script>
|
<script src="<?=pihole.fileversion('vendor/bstreeview/bstreeview.min.js')?>"></script>
|
||||||
<script src="<?=pihole.fileversion('scripts/js/logout.js')?>"></script>
|
<script src="<?=pihole.fileversion('scripts/js/logout.js')?>"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="<?=theme.name?> hold-transition sidebar-mini <? if pihole.boxedlayout() then ?>layout-boxed<? end ?> logged-in" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
|
<body class="<?=theme.name?> hold-transition sidebar-mini <? if pihole.boxedlayout() then ?>layout-boxed<? end ?> logged-in page-<?=pihole.format_path(mg.request_info.request_uri)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
|
||||||
<noscript>
|
<noscript>
|
||||||
<!-- JS Warning -->
|
<!-- JS Warning -->
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user