improved styling, called css file in history.php

This commit is contained in:
Sam Tuke 2012-04-26 14:32:29 +01:00
parent b19fae392b
commit 6312067ab5
4 changed files with 8 additions and 4 deletions

View File

@ -1,2 +1,3 @@
#history {
margin: 2em 2em 0;
}

View File

@ -23,6 +23,7 @@
require_once( '../../lib/base.php' );
OC_Util::checkLoggedIn( );
OC_Util::addStyle('files_versions','versions');
if ( isset( $_GET['path'] ) ) {

View File

@ -1,3 +1,4 @@
<div id="history">
<?php
if(isset($_['message'])){
@ -10,9 +11,10 @@
echo('<strong>Versions of '.$_['path']).'</strong><br>';
echo('<p><em>You can click on the revert button to revert to the specific verson.</em></p><br />');
foreach ($_['versions'] as $v){
echo(' '.OC_Util::formatDate($v).' <a href="history.php?path='.urlencode($_['path']).'&revert='.$v.'" class="button">revert</a><br /><br />');
echo(' '.OC_Util::formatDate($v).' <a href="history.php?path='.urlencode($_['path']).'&revert='.$v.'" class="button">Revert</a><br /><br />');
}
}
?>
</div>

View File

@ -36,7 +36,7 @@ class Storage {
const DEFAULTFOLDER='versions';
const DEFAULTBLACKLIST='avi mp3 mpg mp4';
const DEFAULTMAXFILESIZE=1048576; // 10MB
const DEFAULTMININTERVAL=300; // 5 min
const DEFAULTMININTERVAL=1; // 5 min
const DEFAULTMAXVERSIONS=50;
/**