2016-03-04 15:56:13 +03:00
< ? php
script ( 'updatenotification' , 'admin' );
/** @var array $_ */
/** @var bool $isNewVersionAvailable */
$isNewVersionAvailable = $_ [ 'isNewVersionAvailable' ];
/** @var string $newVersionString */
$newVersionString = $_ [ 'newVersionString' ];
/** @var string $lastCheckedDate */
$lastCheckedDate = $_ [ 'lastChecked' ];
/** @var array $channels */
$channels = $_ [ 'channels' ];
/** @var string $currentChannel */
$currentChannel = $_ [ 'currentChannel' ];
?>
< form id = " oca_updatenotification_section " class = " section " >
2016-02-09 21:58:29 +03:00
< h2 >< ? php p ( $l -> t ( 'Updater' )); ?> </h2>
2016-03-04 15:56:13 +03:00
< ? 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 : ?>
< 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 ; ?>
2016-02-09 21:58:29 +03:00
< p >
2016-03-04 15:56:13 +03:00
< label for = " release-channel " >< ? php p ( $l -> t ( 'Update channel:' )) ?> </label>
< select id = " release-channel " >
< option value = " <?php p( $currentChannel ); ?> " >< ? php p ( $currentChannel ); ?> </option>
< ? php foreach ( $channels as $channel => $channelTitle ){ ?>
< option value = " <?php p( $channelTitle ) ?> " >
< ? php p ( $channelTitle ) ?>
</ option >
< ? php } ?>
</ select >
< span id = " channel_save_msg " ></ span >
</ p >
< p >
< em >< ? php p ( $l -> t ( 'You can always update to a newer version / experimental channel. But you can never downgrade to a more stable channel.' )); ?> </em>
2016-02-09 21:58:29 +03:00
</ p >
2016-05-09 10:43:06 +03:00
2016-05-10 12:04:24 +03:00
< p id = " oca_updatenotification_groups " >
2016-05-09 10:43:06 +03:00
< br />
< ? php p ( $l -> t ( 'Notify members of the following groups about available updates:' )); ?>
< input name = " oca_updatenotification_groups_list " type = " hidden " id = " oca_updatenotification_groups_list " value = " <?php p( $_['notify_groups'] ) ?> " style = " width: 400px " >
2016-05-10 12:04:24 +03:00
< em class = " <?php if (!in_array( $currentChannel , ['daily', 'git'])) p('hidden'); ?> " >
< br />
< ? php p ( $l -> t ( 'Only notification for app updates are available, because the selected update channel for ownCloud itself does not allow notifications.' )); ?>
</ em >
2016-05-09 10:43:06 +03:00
</ p >
2016-02-09 21:58:29 +03:00
</ form >