$app['canInstall'] = empty($missing);
$app['missingDependencies'] = $missing;
+ $app['missingMinOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['min-version']);
+ $app['missingMaxOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['max-version']);
+
return $app;
}, $apps);
<div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div>
<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div>
+ {{#if missingMinOwnCloudVersion}}
+ <div class="app-dependencies">
+ <p><?php p($l->t('This app has no minimum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p>
+ </div>
+ {{else}}
+ {{#if missingMaxOwnCloudVersion}}
+ <div class="app-dependencies">
+ <p><?php p($l->t('This app has no maximum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p>
+ </div>
+ {{/if}}
+ {{/if}}
+
{{#unless canInstall}}
<div class="app-dependencies">
<p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p>