summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-07-07 12:12:54 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-19 18:03:35 +0200
commitb919ae96f093a927e83f9f114a34400a4095ea5e (patch)
tree74f8631b639ba72d7eecd761092ae84a4d40a98a /core/templates
parent645600ae03101c1212576022548781641f2b4970 (diff)
downloadnextcloud-server-b919ae96f093a927e83f9f114a34400a4095ea5e.tar.gz
nextcloud-server-b919ae96f093a927e83f9f114a34400a4095ea5e.zip
Display app names in update page for app updates
Whenever the update page is displayed for apps, show app names instead of the core update text.
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/update.admin.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php
index ccd5d236828..4e28aacf023 100644
--- a/core/templates/update.admin.php
+++ b/core/templates/update.admin.php
@@ -1,7 +1,20 @@
<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('The following apps will be updated:')); ?></h2>
+ <?php } else { ?>
<h2 class="title bold"><?php p($l->t('%s will be updated to version %s.',
array($_['productName'], $_['version']))); ?></h2>
+ <?php } ?>
+ <?php if (!empty($_['appsToUpgrade'])) { ?>
+ <div class="infogroup">
+ <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($_['appList'])) { ?>
<div class="infogroup">
<span class="bold"><?php p($l->t('The following apps will be disabled:')) ?></span>
@@ -17,9 +30,11 @@
<?php p($l->t('The theme %s has been disabled.', array($_['oldTheme']))) ?>
</div>
<?php } ?>
+ <?php if (!$_['isAppsOnlyUpgrade']) { ?>
<div class="infogroup bold">
<?php p($l->t('Please make sure that the database, the config folder and the data folder have been backed up before proceeding.')) ?>
</div>
+ <?php } ?>
<input class="updateButton" type="button" value="<?php p($l->t('Start update')) ?>">
<div class="infogroup">
<?php p($l->t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?>