diff options
author | Sam Tuke <sam@donttravelempty.com> | 2012-04-26 14:32:29 +0100 |
---|---|---|
committer | Sam Tuke <sam@donttravelempty.com> | 2012-04-26 14:32:29 +0100 |
commit | 6312067ab58b3d7121ed8e3211030f77eda699bd (patch) | |
tree | a55ead43bc3326aee61a0e6ceff97cb9f135b3ee /apps | |
parent | b19fae392b58899231c23d7f397d0cb9d098a99a (diff) | |
download | nextcloud-server-6312067ab58b3d7121ed8e3211030f77eda699bd.tar.gz nextcloud-server-6312067ab58b3d7121ed8e3211030f77eda699bd.zip |
improved styling, called css file in history.php
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/css/versions.css | 5 | ||||
-rw-r--r-- | apps/files_versions/history.php | 1 | ||||
-rw-r--r-- | apps/files_versions/templates/history.php | 4 | ||||
-rw-r--r-- | apps/files_versions/versions.php | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_versions/css/versions.css b/apps/files_versions/css/versions.css index 139597f9cb0..b2279e9b05a 100644 --- a/apps/files_versions/css/versions.css +++ b/apps/files_versions/css/versions.css @@ -1,2 +1,3 @@ - - +#history { + margin: 2em 2em 0; +}
\ No newline at end of file diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php index 312cc734323..b0aa8fdc982 100644 --- a/apps/files_versions/history.php +++ b/apps/files_versions/history.php @@ -23,6 +23,7 @@ require_once( '../../lib/base.php' ); OC_Util::checkLoggedIn( ); +OC_Util::addStyle('files_versions','versions'); if ( isset( $_GET['path'] ) ) { diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php index 1b3de9ce77c..d33d2b0f68b 100644 --- a/apps/files_versions/templates/history.php +++ b/apps/files_versions/templates/history.php @@ -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> diff --git a/apps/files_versions/versions.php b/apps/files_versions/versions.php index 156a4f59c73..167c64a4345 100644 --- a/apps/files_versions/versions.php +++ b/apps/files_versions/versions.php @@ -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; /** |