mirror of
https://github.com/pi-hole/web.git
synced 2025-12-25 05:05:33 +00:00
Show "Query Types (over time)" and "Forward Destinations (over time)" only if requested by a setting in setupVars.conf
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
25
index.php
25
index.php
@@ -159,8 +159,30 @@ else
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// Determine if "Query Types (over time)" should be shown
|
||||
$queryTypesOverTime = false;
|
||||
if(isset($setupVars['DASHBOARD_SHOW_QUERY_TYPES_OVER_TIME']))
|
||||
{
|
||||
if($setupVars['DASHBOARD_SHOW_QUERY_TYPES_OVER_TIME'])
|
||||
{
|
||||
$queryTypesOverTime = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Determine if "Forward Destinations (over time)" should be shown
|
||||
$forwardDestsOverTime = false;
|
||||
if(isset($setupVars['DASHBOARD_SHOW_FORWARD_DESTS_OVER_TIME']))
|
||||
{
|
||||
if($setupVars['DASHBOARD_SHOW_FORWARD_DESTS_OVER_TIME'])
|
||||
{
|
||||
$forwardDestsOverTime = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if($forwardDestsOverTime || $queryTypesOverTime) { ?>
|
||||
<div class="row">
|
||||
<?php if($queryTypesOverTime) { ?>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="box" id="query-types">
|
||||
<div class="box-header with-border">
|
||||
@@ -177,6 +199,7 @@ else
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
</div>
|
||||
<?php } if($forwardDestsOverTime) { ?>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="box" id="forward-destinations">
|
||||
<div class="box-header with-border">
|
||||
@@ -193,7 +216,9 @@ else
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if($boxedlayout)
|
||||
|
||||
Reference in New Issue
Block a user