2012-04-26 13:32:29 +00:00
|
|
|
<div id="history">
|
2012-04-27 12:19:16 +00:00
|
|
|
|
2012-04-23 21:54:49 +00:00
|
|
|
<?php
|
2012-04-27 12:19:16 +00:00
|
|
|
|
|
|
|
if( isset( $_['message'] ) ) {
|
2012-04-23 21:54:49 +00:00
|
|
|
|
|
|
|
|
2012-04-27 12:19:16 +00:00
|
|
|
if( isset($_['path'] ) ) echo('<strong>File: '.$_['path'] ).'</strong><br>';
|
|
|
|
echo('<strong>'.$_['message'] ).'</strong><br>';
|
2012-04-23 21:54:49 +00:00
|
|
|
|
2012-04-27 12:19:16 +00:00
|
|
|
}else{
|
2012-04-23 21:54:49 +00:00
|
|
|
|
2012-04-27 12:19:16 +00:00
|
|
|
if( isset( $_['outcome_stat'] ) ) {
|
|
|
|
|
|
|
|
echo( '<div id="feedback-messages" class="'.$_['outcome_stat'].'"><h3>'.$_['outcome_msg'] ).'</h3></div><br>';
|
2012-04-23 21:54:49 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-27 12:19:16 +00:00
|
|
|
echo( '<strong>Versions of '.$_['path'] ).'</strong><br>';
|
2012-05-11 12:17:37 +00:00
|
|
|
echo('<p><em>Revert a file to a previous version by clicking on its revert button</em></p><br />');
|
2012-04-27 12:19:16 +00:00
|
|
|
|
|
|
|
foreach ( $_['versions'] as $v ) {
|
|
|
|
|
|
|
|
echo ' ';
|
2012-05-01 19:07:08 +00:00
|
|
|
echo OCP\Util::formatDate( $v );
|
2012-05-19 02:07:28 +00:00
|
|
|
echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php').'?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />';
|
2012-04-27 12:19:16 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-23 21:54:49 +00:00
|
|
|
?>
|
2012-04-26 13:32:29 +00:00
|
|
|
</div>
|