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
|
|
|
|
|
|
|
|
2013-02-28 00:50:22 +04:00
|
|
|
if( isset($_['path'] ) ) print_unescaped('<strong>File: '.OC_Util::sanitizeHTML($_['path'])).'</strong><br>';
|
|
|
|
print_unescaped('<strong>'.OC_Util::sanitizeHTML($_['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
|
|
|
|
2013-02-28 00:50:22 +04:00
|
|
|
print_unescaped( '<div id="feedback-messages" class="'.OC_Util::sanitizeHTML($_['outcome_stat']).'"><h3>'.OC_Util::sanitizeHTML($_['outcome_msg']) ).'</h3></div><br>';
|
2012-04-24 01:54:49 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-02-28 00:50:22 +04:00
|
|
|
print_unescaped( '<strong>Versions of '.OC_Util::sanitizeHTML($_['path']) ).'</strong><br>';
|
|
|
|
print_unescaped('<p><em>'.OC_Util::sanitizeHTML($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 ) {
|
2013-02-28 00:50:22 +04:00
|
|
|
p(' ');
|
|
|
|
p(OCP\Util::formatDate( doubleval($v['version'])));
|
|
|
|
print_unescaped(' <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'] ) {
|
2013-02-28 00:50:22 +04:00
|
|
|
print_unescaped(' (<b>Current</b>)');
|
2012-12-15 02:22:46 +04:00
|
|
|
}
|
2013-02-28 00:50:22 +04:00
|
|
|
print_unescaped('<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>
|