summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-27 14:47:59 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-27 14:47:59 +0200
commit3e00554d35be995f52fba4ab49fc6ef1b01fc37b (patch)
treece7942f14193e9f6c85401cbdfd4045e2fa9a07c /apps/updatenotification/templates
parent6f955defe46b498f014d4e0f105d26324bb7ecd6 (diff)
downloadnextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.tar.gz
nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.zip
Respect updater kill switch and fall back to download button
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/templates')
-rw-r--r--apps/updatenotification/templates/admin.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php
index 68ef1d423b4..78337eb313b 100644
--- a/apps/updatenotification/templates/admin.php
+++ b/apps/updatenotification/templates/admin.php
@@ -14,13 +14,18 @@
$currentChannel = $_['currentChannel'];
?>
<form id="oca_updatenotification_section" class="followupsection">
- <?php if($isNewVersionAvailable === true): ?>
+ <?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 else: ?>
+ <?php if ($_['updaterEnabled']) { ?>
+ <input type="button" id="oca_updatenotification_button" value="<?php p($l->t('Open updater')) ?>">
+ <?php } ?>
+ <?php if (!empty($_['downloadLink'])) { ?>
+ <a href="<?php p($_['downloadLink']); ?>" class="button<?php if ($_['updaterEnabled']) { p(' hidden'); } ?>"><?php p($l->t('Download now')) ?></a>
+ <?php } ?>
+ <?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>
- <?php endif; ?>
+ <?php } ?>
<p>
<label for="release-channel"><?php p($l->t('Update channel:')) ?></label>