aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-20 11:50:01 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-20 11:50:01 +0200
commit06d8edd9637f59f914ec7f3d7f6846f3cbe88eaf (patch)
tree49833fd9a8a80255b7ae2d91291e5371a047870b /core/templates
parent2fe070ca37c76bc118c0fe360b9c7008bf01e52b (diff)
parenta2674b2b303c6b2a5935638af04f0e4a61afae24 (diff)
downloadnextcloud-server-06d8edd9637f59f914ec7f3d7f6846f3cbe88eaf.tar.gz
nextcloud-server-06d8edd9637f59f914ec7f3d7f6846f3cbe88eaf.zip
Merge pull request #17434 from owncloud/update-showappnameonappupdate
Display app names in update page for app updates
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/update.admin.php20
1 files changed, 17 insertions, 3 deletions
diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php
index ccd5d236828..191f727df71 100644
--- a/core/templates/update.admin.php
+++ b/core/templates/update.admin.php
@@ -1,12 +1,26 @@
<div class="update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>">
<div class="updateOverview">
+ <?php if ($_['isAppsOnlyUpgrade']) { ?>
+ <h2 class="title bold"><?php p($l->t('Apps update required.')); ?></h2>
+ <?php } else { ?>
<h2 class="title bold"><?php p($l->t('%s will be updated to version %s.',
array($_['productName'], $_['version']))); ?></h2>
- <?php if (!empty($_['appList'])) { ?>
+ <?php } ?>
+ <?php if (!empty($_['appsToUpgrade'])) { ?>
+ <div class="infogroup">
+ <span class="bold"><?php p($l->t('These apps will be updated:')); ?></span>
+ <ul class="content appList">
+ <?php foreach ($_['appsToUpgrade'] as $appInfo) { ?>
+ <li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
+ <?php } ?>
+ </ul>
+ </div>
+ <?php } ?>
+ <?php if (!empty($_['incompatibleAppsList'])) { ?>
<div class="infogroup">
- <span class="bold"><?php p($l->t('The following apps will be disabled:')) ?></span>
+ <span class="bold"><?php p($l->t('These incompatible apps will be disabled:')) ?></span>
<ul class="content appList">
- <?php foreach ($_['appList'] as $appInfo) { ?>
+ <?php foreach ($_['incompatibleAppsList'] as $appInfo) { ?>
<li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
<?php } ?>
</ul>