]> source.dussan.org Git - nextcloud-server.git/commitdiff
improved styling, called css file in history.php
authorSam Tuke <sam@donttravelempty.com>
Thu, 26 Apr 2012 13:32:29 +0000 (14:32 +0100)
committerSam Tuke <sam@donttravelempty.com>
Thu, 26 Apr 2012 13:32:29 +0000 (14:32 +0100)
apps/files_versions/css/versions.css
apps/files_versions/history.php
apps/files_versions/templates/history.php
apps/files_versions/versions.php

index 139597f9cb07c5d48bed18984ec4747f4b4f3438..b2279e9b05ac9662e48249ed6345722209fcaaf5 100644 (file)
@@ -1,2 +1,3 @@
-
-
+#history {
+    margin: 2em 2em 0;
+}
\ No newline at end of file
index 312cc734323c5243033c038e112e0d7e7aeaf46e..b0aa8fdc9820733a6baeb4f3479ef892b4b42ebd 100644 (file)
@@ -23,6 +23,7 @@
 require_once( '../../lib/base.php' );
 
 OC_Util::checkLoggedIn( );
+OC_Util::addStyle('files_versions','versions');
 
 if ( isset( $_GET['path'] ) ) {
 
index 1b3de9ce77c0d7cf75525ff223f6d0983e809b26..d33d2b0f68b7814ccd1f3184aaafbe54ae2f33de 100644 (file)
@@ -1,3 +1,4 @@
+<div id="history">
 <?php
        if(isset($_['message'])){
 
                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>
index 156a4f59c73bed478d9e540900bf53111c8ecdff..167c64a4345562b811ed9653ae1115fab11b6ff7 100644 (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; 
 
        /**