Support 2 lines on flag for deprecated / incompatible / blacklisted

This commit is contained in:
Squidly271 2021-12-12 13:25:53 -05:00
parent 3c4a612011
commit 288d8c47b0
3 changed files with 10 additions and 4 deletions

View File

@ -22,4 +22,4 @@ e3dc9ed23036a09d69d5cd5c3111751e ./scripts/showStatistics.php
2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php 2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php
b15e910eb0b7d38d5253a99bf0ab7ba8 ./skins/Narrow/css.php b15e910eb0b7d38d5253a99bf0ab7ba8 ./skins/Narrow/css.php
cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html
e65fdc3e90ebc85f9e96514311d22d53 ./skins/Narrow/skin.php 53290cd3047e47eb660cd61c788c8823 ./skins/Narrow/skin.php

View File

@ -1064,22 +1064,28 @@ function displayCard($template) {
"; ";
} }
$card .= "</div>"; $card .= "</div>";
if ( $Installed || $Uninstall ) {
$flagTextStart = tr("Installed")."<br>";
} else {
$flagTextStart = "&nbsp;";
$flagTextEnd = "&nbsp;";
}
if ( $Blacklist ) { if ( $Blacklist ) {
$card .= " $card .= "
<div class='warningCardBackground'> <div class='warningCardBackground'>
<div class='betaPopupText ca_center' title='".tr("This application template / has been blacklisted")."'>&nbsp;".tr("Blacklisted")."&nbsp;</div> <div class='betaPopupText ca_center' title='".tr("This application template / has been blacklisted")."'>$flagTextStart".tr("Blacklisted")."$flagTextEnd</div>
</div> </div>
"; ";
} elseif ( isset($Compatible) && ! $Compatible ) { } elseif ( isset($Compatible) && ! $Compatible ) {
$card .= " $card .= "
<div class='warningCardBackground'> <div class='warningCardBackground'>
<div class='betaPopupText ca_center' title='".tr("This application is not compatible with your version of Unraid")."'>&nbsp;".tr("Incompatible")."&nbsp;</div> <div class='betaPopupText ca_center' title='".tr("This application is not compatible with your version of Unraid")."'>$flagTextStart".tr("Incompatible")."$flagTextEnd</div>
</div> </div>
"; ";
} elseif ( $Deprecated ) { } elseif ( $Deprecated ) {
$card .= " $card .= "
<div class='warningCardBackground'> <div class='warningCardBackground'>
<div class='betaPopupText ca_center' title='".tr("This application template has been deprecated")."'>&nbsp;".tr("Deprecated")."&nbsp;</div> <div class='betaPopupText ca_center' title='".tr("This application template has been deprecated")."'>$flagTextStart".tr("Deprecated")."$flagTextEnd</div>
</div> </div>
"; ";
} elseif ( $Installed || $Uninstall) { } elseif ( $Installed || $Uninstall) {