summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/templates
diff options
context:
space:
mode:
authorSam Tuke <samtuke@jack-laptop.(none)>2012-04-27 13:19:16 +0100
committerSam Tuke <samtuke@jack-laptop.(none)>2012-04-27 13:19:16 +0100
commit80c850d018baceca3a6197a7c21651c58d0edc25 (patch)
tree6bf962e30bf88e2e5397f598e0ec18938a38c4a8 /apps/files_versions/templates
parent768041b6cba5e8d4614e17d2ad492c855ec740a0 (diff)
downloadnextcloud-server-80c850d018baceca3a6197a7c21651c58d0edc25.tar.gz
nextcloud-server-80c850d018baceca3a6197a7c21651c58d0edc25.zip
added revert attempt outcome messages, removed contextual ajax revert button for now as it's not functional, improved readaibility of scripts
Diffstat (limited to 'apps/files_versions/templates')
-rw-r--r--apps/files_versions/templates/history.php35
-rw-r--r--apps/files_versions/templates/settings.php2
2 files changed, 23 insertions, 14 deletions
diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php
index 92a3eb9c07e..2ef0c89e229 100644
--- a/apps/files_versions/templates/history.php
+++ b/apps/files_versions/templates/history.php
@@ -1,24 +1,33 @@
<div id="history">
+
<?php
- if(isset($_['message'])){
+
+if( isset( $_['message'] ) ) {
- if(isset($_['path'])) echo('<strong>File: '.$_['path']).'</strong><br>';
- echo('<strong>'.$_['message']).'</strong><br>';
+ if( isset($_['path'] ) ) echo('<strong>File: '.$_['path'] ).'</strong><br>';
+ echo('<strong>'.$_['message'] ).'</strong><br>';
- }else{
+}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 ' ';
- echo OC_Util::formatDate( $v );
- echo ' <a href="history.php?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />';
-
- }
+ if( isset( $_['outcome_stat'] ) ) {
+
+ echo( '<div id="feedback-messages" class="'.$_['outcome_stat'].'"><h3>'.$_['outcome_msg'] ).'</h3></div><br>';
}
+ 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 ' ';
+ echo OC_Util::formatDate( $v );
+ echo ' <a href="history.php?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />';
+
+ }
+
+}
+
?>
</div>
diff --git a/apps/files_versions/templates/settings.php b/apps/files_versions/templates/settings.php
index 8c8def94429..2f918257360 100644
--- a/apps/files_versions/templates/settings.php
+++ b/apps/files_versions/templates/settings.php
@@ -4,4 +4,4 @@
Configuration goes here...
</fieldset>
-</form>
+</form> \ No newline at end of file