mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Support 2 lines on flag for deprecated / incompatible / blacklisted
This commit is contained in:
parent
3c4a612011
commit
288d8c47b0
Binary file not shown.
@ -22,4 +22,4 @@ e3dc9ed23036a09d69d5cd5c3111751e ./scripts/showStatistics.php
|
||||
2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php
|
||||
b15e910eb0b7d38d5253a99bf0ab7ba8 ./skins/Narrow/css.php
|
||||
cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html
|
||||
e65fdc3e90ebc85f9e96514311d22d53 ./skins/Narrow/skin.php
|
||||
53290cd3047e47eb660cd61c788c8823 ./skins/Narrow/skin.php
|
||||
|
@ -1064,22 +1064,28 @@ function displayCard($template) {
|
||||
";
|
||||
}
|
||||
$card .= "</div>";
|
||||
if ( $Installed || $Uninstall ) {
|
||||
$flagTextStart = tr("Installed")."<br>";
|
||||
} else {
|
||||
$flagTextStart = " ";
|
||||
$flagTextEnd = " ";
|
||||
}
|
||||
if ( $Blacklist ) {
|
||||
$card .= "
|
||||
<div class='warningCardBackground'>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application template / has been blacklisted")."'> ".tr("Blacklisted")." </div>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application template / has been blacklisted")."'>$flagTextStart".tr("Blacklisted")."$flagTextEnd</div>
|
||||
</div>
|
||||
";
|
||||
} elseif ( isset($Compatible) && ! $Compatible ) {
|
||||
$card .= "
|
||||
<div class='warningCardBackground'>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application is not compatible with your version of Unraid")."'> ".tr("Incompatible")." </div>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application is not compatible with your version of Unraid")."'>$flagTextStart".tr("Incompatible")."$flagTextEnd</div>
|
||||
</div>
|
||||
";
|
||||
} elseif ( $Deprecated ) {
|
||||
$card .= "
|
||||
<div class='warningCardBackground'>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application template has been deprecated")."'> ".tr("Deprecated")." </div>
|
||||
<div class='betaPopupText ca_center' title='".tr("This application template has been deprecated")."'>$flagTextStart".tr("Deprecated")."$flagTextEnd</div>
|
||||
</div>
|
||||
";
|
||||
} elseif ( $Installed || $Uninstall) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user