diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-04-23 23:54:49 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-04-23 23:54:49 +0200 |
commit | 4ea927a7987d7fdcefcacb341f1a60b094ccf8d2 (patch) | |
tree | deb1cad81406276ffd2e3db66a77cd3d78af73c4 /apps/files_versions/templates | |
parent | f5c9fe9ece6fdfb35bab5eefdf83830b5045b5a8 (diff) | |
download | nextcloud-server-4ea927a7987d7fdcefcacb341f1a60b094ccf8d2.tar.gz nextcloud-server-4ea927a7987d7fdcefcacb341f1a60b094ccf8d2.zip |
wrote a new versioning app over the weekend. Basic functionality to far but it works (TM) and has all the needed features (TM) for ownCloud 4. Userinterface integration and small improvements still missing.
Diffstat (limited to 'apps/files_versions/templates')
-rw-r--r-- | apps/files_versions/templates/history.php | 18 | ||||
-rw-r--r-- | apps/files_versions/templates/settings.php | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php new file mode 100644 index 00000000000..1b3de9ce77c --- /dev/null +++ b/apps/files_versions/templates/history.php @@ -0,0 +1,18 @@ +<?php + if(isset($_['message'])){ + + + if(isset($_['path'])) echo('<strong>File: '.$_['path']).'</strong><br>'; + echo('<strong>'.$_['message']).'</strong><br>'; + + }else{ + + 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 />'); + } + + } + +?> diff --git a/apps/files_versions/templates/settings.php b/apps/files_versions/templates/settings.php new file mode 100644 index 00000000000..8c8def94429 --- /dev/null +++ b/apps/files_versions/templates/settings.php @@ -0,0 +1,7 @@ +<form id="external"> + <fieldset class="personalblock"> + <strong>Versions</strong><br /> + + Configuration goes here... + </fieldset> +</form> |