aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 16:06:20 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 16:06:20 +0000
commita7f418d3227d0c1cb5fe80c2cb6c29649accb58d (patch)
tree945e229215ef44795b47d0269ef65857cb4d2258
parente8e2cfa6c924b02d95f3d31f69560a5e3eaf825a (diff)
downloadelgg-a7f418d3227d0c1cb5fe80c2cb6c29649accb58d.tar.gz
elgg-a7f418d3227d0c1cb5fe80c2cb6c29649accb58d.tar.bz2
blog revisions tweaked
git-svn-id: http://code.elgg.org/elgg/trunk@6206 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/blog/views/default/blog/sidebar_revisions.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/mod/blog/views/default/blog/sidebar_revisions.php b/mod/blog/views/default/blog/sidebar_revisions.php
index cb65b4d0c..3481e444d 100644
--- a/mod/blog/views/default/blog/sidebar_revisions.php
+++ b/mod/blog/views/default/blog/sidebar_revisions.php
@@ -41,30 +41,29 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
if ($blog->status == 'published') {
$load = elgg_view('output/url', array(
'href' => $load_base_url,
- 'text' => elgg_echo('load')
+ 'text' => elgg_echo('blog:status:published')
));
$time = "<span class='entity_subtext'>".friendly_time($blog->publish_date)."</span>";
echo '<li>
- ' . elgg_echo('blog:status:published') . ": $time $load
+ ' . $load . ": $time
</li>";
}
foreach ($revisions as $revision) {
$time = "<span class='entity_subtext'>".friendly_time($revision->time_created)."</span>";
- $load = elgg_view('output/url', array(
- 'href' => $load_base_url . $revision->id,
- 'text' => elgg_echo('load')
- ));
-
if ($revision->name == 'blog_auto_save') {
- $name = elgg_echo('blog:auto_saved_revision');
+ $revision_lang = elgg_echo('blog:auto_saved_revision');
} else {
- $name = elgg_echo('blog:revision') . " $n";
+ $revision_lang = elgg_echo('blog:revision') . " $n";
}
+ $load = elgg_view('output/url', array(
+ 'href' => $load_base_url . $revision->id,
+ 'text' => $revision_lang
+ ));
- $text = "$name: $time $load";
+ $text = "$load: $time";
$class = 'class="auto_saved"';
$n--;