ncp-web: hide power menu on docker

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2021-11-05 13:12:43 -06:00
parent 13f69cda0d
commit c56a4db369

View File

@ -214,11 +214,17 @@ HTML;
</div>
</div>
</a>
<?php
// Skip section in docker container
if ( !file_exists( '/.docker-image' ) )
echo <<<HTML
<div id="poweroff" title="<?php echo $l->__("Power Off"); ?>">
<div class="expand">
<div class="icon-power-white"></div>
</div>
</div>
HTML
?>
</div>
</header>