diff options
Diffstat (limited to 'apps/updatenotification/templates/admin.php')
-rw-r--r-- | apps/updatenotification/templates/admin.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php index c1adc8d0d3e..e9de87304c5 100644 --- a/apps/updatenotification/templates/admin.php +++ b/apps/updatenotification/templates/admin.php @@ -12,13 +12,19 @@ $channels = $_['channels']; /** @var string $currentChannel */ $currentChannel = $_['currentChannel']; + /** @var bool $updaterRequirementsFulfilled */ + $updaterRequirementsFulfilled = $_['updaterRequirementsFulfilled']; ?> <form id="oca_updatenotification_section" class="section"> <h2><?php p($l->t('Updater')); ?></h2> <?php if($isNewVersionAvailable === true): ?> <strong><?php p($l->t('A new version is available: %s', [$newVersionString])); ?></strong> - <input type="button" id="oca_updatenotification_button" value="<?php p($l->t('Open updater')) ?>"> + <?php if($updaterRequirementsFulfilled === true): ?> + <input type="button" id="oca_updatenotification_button" value="<?php p($l->t('Open updater')) ?>"> + <?php else: ?> + <br/><?php p($l->t('At the moment only manual updates are supported on your environment. This is very likely the case because functions such as shell_exec are not available.')); ?> + <?php endif; ?> <?php else: ?> <strong><?php print_unescaped($l->t('Your version is up to date.')); ?></strong> <span class="icon-info svg" title="<?php p($l->t('Checked on %s', [$lastCheckedDate])) ?>"></span> |