Blame view

sources/apps/updater/templates/update.php 1.96 KB
d1bafeea1   Kload   [fix] Upgrade to ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  <?php
  
  /**
   * ownCloud - Updater plugin
   *
   * @author Victor Dubiniuk
   * @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
   *
   * This file is licensed under the Affero General Public License version 3 or
   * later.
   */
  
  ?>
  <?php $data=OC_Updater::check(); ?>
  <?php $isNewVersionAvailable = isset($data['version']) && strlen($data['version']) ?>
  <div id="updater-content" ng-app="updater" ng-init="navigation='backup'">
  	<ul ng-model="navigation">
  		<li ng-click="navigation='backup'" ng-class="{current : navigation=='backup'}"><?php p($l->t('Backup Management')) ?></li>
  		<li ng-click="navigation='update'" ng-class="{current : navigation=='update'}"><?php p($l->t('Update')) ?></li>
  	</ul>
  	<fieldset ng-controller="backupCtrl" ng-show="navigation=='backup'">
  		<label for="backupbase"><?php p($l->t('Backup directory')) ?></label>
  		<input readonly="readonly" type="text" id="backupbase" value="<?php p(\OCA\Updater\App::getBackupBase()); ?>" />
  		<table ng-controller="backupCtrl">
  			<thead ng-hide="!entries.length">
  				<tr>
  					<th><?php p($l->t('Backup')) ?></th>
  					<th><?php p($l->t('Done on')) ?></th>
  					<th>&nbsp;</th>
  				</tr>
  			</thead>
  			<tbody>
  				<tr ng-repeat="entry in entries">
  					<td title="<?php p($l->t('Download')) ?>" class="item" ng-click="doDownload(entry.title)">{{entry.title}}</td>
  					<td title="<?php p($l->t('Download')) ?>" class="item" ng-click="doDownload(entry.title)">{{entry.date}}</td>
  					<td title="<?php p($l->t('Delete')) ?>" class="item" ng-click="doDelete(entry.title)"><?php p($l->t('Delete')) ?></td>
  				</tr>
  				<tr ng-show="!entries.length"><td colspan="3"><?php p($l->t('No backups found')) ?></td></tr>
  			</tbody>
  		</table>
  	</fieldset>
  	<fieldset ng-controller="updateCtrl" ng-show="navigation=='update'">
  		<button ng-click="update()" ng-show="<?php p($isNewVersionAvailable) ?>" id="updater-start">
  			<?php p($l->t('Update')) ?>
  		</button>
  		<div id="upd-progress" style="display:none;"><div></div></div>
  	</fieldset>
  </div>