If an app is conditionally incompatible, display a moderator specifed messed (if present) instead of simply a gneric Not compatible

pull/11/head
Squidly271 2022-02-03 20:01:32 -05:00
parent 5e2995b582
commit 1e017d10da
3 changed files with 5 additions and 4 deletions

View File

@ -21,4 +21,4 @@ a1401a0bed89c182b69f0c7508282c1f ./scripts/pluginInstall.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
b9af1449b8201afb0866cc53f279cd63 ./skins/Narrow/css.php
7d827147dc8ede3d518b2cacae1d385b ./skins/Narrow/skin.html
a8101f2f3ca94215c6b968778f55715b ./skins/Narrow/skin.php
47a946524b513a7c6b466f0fb48b49e5 ./skins/Narrow/skin.php

View File

@ -1045,7 +1045,7 @@ function displayCard($template) {
if ( $Deprecated )
$warning = tr("This application template has been deprecated");
if ( ! $Compatible )
$warning = tr("This application is not compatible with your version of Unraid");
$warning = $VerMessage ?: tr("This application is not compatible with your version of Unraid");
if ( $Blacklist )
$warning = tr("This application template has been blacklisted");
@ -1098,9 +1098,10 @@ function displayCard($template) {
</div>
";
} elseif ( isset($Compatible) && ! $Compatible ) {
$verMsg = $VerMessage ?: tr("This application is not compatible with your version of Unraid");
$card .= "
<div class='warningCardBackground'>
<div class='betaPopupText ca_center' title='".tr("This application is not compatible with your version of Unraid")."'>$flagTextStart".tr("Incompatible")."$flagTextEnd</div>
<div class='betaPopupText ca_center' title='$verMsg'>$flagTextStart".tr("Incompatible")."$flagTextEnd</div>
</div>
";
} elseif ( $Deprecated ) {
@ -1200,7 +1201,7 @@ function displayPopup($template) {
if ( $Deprecated )
$ModeratorComment .= "<br>".tr("This application template has been deprecated");
if ( ! $Compatible && ! $UnknownCompatible )
$ModeratorComment .= "<br>".tr("This application is not compatible with your version of Unraid");
$ModeratorComment .= $VerMessage ?: "<br>".tr("This application is not compatible with your version of Unraid");
if ( $Blacklist )
$ModeratorComment .= "<br>".tr("This application template has been blacklisted");