diff options
author | Sam Tuke <samtuke@owncloud.com> | 2012-05-16 14:56:37 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2012-05-16 15:00:36 +0100 |
commit | c0df40084a190c3f5b87efdd11b13af42b46fef4 (patch) | |
tree | 483f9733a07c78842c8b7d5dc6982eb21e80706a /apps/files_versions/templates | |
parent | a00c5ac78ccbd581ba043d173d3f85aaf21b03dd (diff) | |
download | nextcloud-server-c0df40084a190c3f5b87efdd11b13af42b46fef4.tar.gz nextcloud-server-c0df40084a190c3f5b87efdd11b13af42b46fef4.zip |
added recognition of which version is 'current' - which is currently live and in use on history page
Diffstat (limited to 'apps/files_versions/templates')
-rwxr-xr-x | apps/files_versions/templates/history.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php index 6ef996049f5..891a3720e41 100755 --- a/apps/files_versions/templates/history.php +++ b/apps/files_versions/templates/history.php @@ -22,8 +22,10 @@ if( isset( $_['message'] ) ) { foreach ( $_['versions'] as $v ) { echo ' '; - echo OCP\Util::formatDate( $v ); - echo ' <a href="history.php?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />'; + echo OCP\Util::formatDate( $v['version'] ); + echo ' <a href="history.php?path='.urlencode( $_['path'] ).'&revert='. $v['version'] .'" class="button">Revert</a>'; + if ( $v['cur'] ) { echo ' (<b>Current</b>)'; } + echo '<br /><br />'; } |