Fix IT Docs not showing, keep assets side nav active when viewing asset details page

This commit is contained in:
johnnyq 2023-11-06 14:38:22 -05:00
parent c40be56869
commit 76f20225f5
1 changed files with 2 additions and 2 deletions

View File

@ -106,12 +106,12 @@
</a>
</li>
<?php if ($config_module_enable_dcoumentation == 1) { ?>
<?php if ($config_module_enable_itdoc == 1) { ?>
<li class="nav-header mt-3">DOCUMENTATION</li>
<li class="nav-item">
<a href="client_assets.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_assets.php") { echo "active"; } ?>">
<a href="client_assets.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_assets.php" || basename($_SERVER["PHP_SELF"]) == "client_asset_details.php") { echo "active"; } ?>">
<i class="nav-icon fas fa-desktop"></i>
<p>
Assets