display missing dependencies in the apps management page

This commit is contained in:
Thomas Müller 2014-12-01 23:07:16 +01:00
parent b469e9f6fb
commit d235a9c128
2 changed files with 17 additions and 0 deletions

View File

@ -200,6 +200,12 @@ span.version { margin-left:1em; margin-right:1em; color:#555; }
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
} }
.missing-dependencies {
list-style: initial;
list-style-type: initial;
list-style-position: inside;
}
/* Transition to complete width! */ /* Transition to complete width! */
.app:hover, .app:active { max-width: inherit; } .app:hover, .app:active { max-width: inherit; }

View File

@ -51,6 +51,15 @@
{{/if}} {{/if}}
</p> </p>
{{/if}} {{/if}}
{{#unless canInstall}}
<div><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></div>
<ul class="missing-dependencies">
{{#each missingDependencies}}
<li>{{this}}</li>
{{/each}}
</ul>
{{/unless}}
{{#if update}} {{#if update}}
<input class="update" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" /> <input class="update" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
{{/if}} {{/if}}
@ -61,8 +70,10 @@
<br /> <br />
<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px"> <input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
{{else}} {{else}}
{{#if canInstall}}
<input class="enable" type="submit" data-appid="{{id}}" data-active="false" value="<?php p($l->t("Enable"));?>"/> <input class="enable" type="submit" data-appid="{{id}}" data-active="false" value="<?php p($l->t("Enable"));?>"/>
{{/if}} {{/if}}
{{/if}}
{{#if canUnInstall}} {{#if canUnInstall}}
<input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" /> <input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" />
{{/if}} {{/if}}