Hiding Dweeb Containers

* default images for dashCards.
* hiding DweebUI and DweebCache containers from displaying on dashboard.
This commit is contained in:
lllllllillllllillll 2023-11-06 01:13:06 -08:00 committed by GitHub
parent 2a4433c3e9
commit cf0c9dda4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -102,7 +102,7 @@ module.exports.dashCard = function dashCard(data) {
<div class="card">
<div class="card-body">
<div class="card-stamp card-stamp-sm">
<img heigh="150px" width="150px" src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/${service}.png"></img>
<img heigh="150px" width="150px" src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/${service}.png" onerror="this.onerror=null;this.src='https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/dweebui.png';"></img>
</div>
<div class="d-flex align-items-center">

View file

@ -78,8 +78,10 @@ module.exports.containerList = async function () {
}
let dockerCard = dashCard(container_info);
card_list += dockerCard;
if ((container_info.name != 'DweebUI') && (container_info.name != 'DweebCache')) {
card_list += dockerCard;
}
}
return card_list;