From 3c3f717d3008c5bf4c22c53b5421d2f15bd87db5 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 21 Apr 2010 21:43:13 +0000 Subject: Cleaned up code to show revisions. Added ability to go to published revision. git-svn-id: http://code.elgg.org/elgg/trunk@5841 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar_revisions.php | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/blog/sidebar_revisions.php b/mod/blog/views/default/blog/sidebar_revisions.php index f777316ec..7207d9c95 100644 --- a/mod/blog/views/default/blog/sidebar_revisions.php +++ b/mod/blog/views/default/blog/sidebar_revisions.php @@ -12,7 +12,6 @@ //If editing a post, show the previous revisions and drafts. $blog = isset($vars['entity']) ? $vars['entity'] : FALSE; - if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) { $owner = $blog->getOwnerEntity(); $revisions = array(); @@ -34,10 +33,24 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) { echo '

' . elgg_echo('blog:revisions') . '

'; $n = count($revisions); - echo '