2012-04-26 17:32:29 +04:00
|
|
|
<div id="history">
|
2012-04-27 16:19:16 +04:00
|
|
|
|
2012-04-24 01:54:49 +04:00
|
|
|
<?php
|
2012-04-27 16:19:16 +04:00
|
|
|
|
|
|
|
if( isset( $_['message'] ) ) {
|
2012-04-24 01:54:49 +04:00
|
|
|
|
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
if( isset($_['path'] ) ) echo('<strong>File: '.$_['path'] ).'</strong><br>';
|
|
|
|
echo('<strong>'.$_['message'] ).'</strong><br>';
|
2012-04-24 01:54:49 +04:00
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
}else{
|
2012-04-24 01:54:49 +04:00
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
if( isset( $_['outcome_stat'] ) ) {
|
2012-08-29 10:42:49 +04:00
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
echo( '<div id="feedback-messages" class="'.$_['outcome_stat'].'"><h3>'.$_['outcome_msg'] ).'</h3></div><br>';
|
2012-04-24 01:54:49 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
echo( '<strong>Versions of '.$_['path'] ).'</strong><br>';
|
2013-02-07 19:17:54 +04:00
|
|
|
echo('<p><em>'.$l->t('Revert a file to a previous version by clicking on its revert button').'</em></p><br />');
|
2012-08-29 10:42:49 +04:00
|
|
|
|
2012-04-27 16:19:16 +04:00
|
|
|
foreach ( $_['versions'] as $v ) {
|
|
|
|
echo ' ';
|
2012-06-27 17:05:40 +04:00
|
|
|
echo OCP\Util::formatDate( doubleval($v['version']) );
|
2012-09-29 00:27:52 +04:00
|
|
|
echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php', array('path' => $_['path'], 'revert' => $v['version'])) .'" class="button">Revert</a><br /><br />';
|
2012-12-15 02:22:46 +04:00
|
|
|
if ( $v['cur'] ) {
|
|
|
|
echo ' (<b>Current</b>)';
|
|
|
|
}
|
2012-05-16 17:56:37 +04:00
|
|
|
echo '<br /><br />';
|
2012-04-27 16:19:16 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-24 01:54:49 +04:00
|
|
|
?>
|
2012-04-26 17:32:29 +04:00
|
|
|
</div>
|