aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 22:06:11 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 22:06:11 +0000
commit365e4fb08bbc5449d32e25e09face877afee4366 (patch)
tree3c7d08e2eb947d29de1d9290dfec76d1f3e54853
parentb4a744fe2acae9d74ea79e8d205b1fb010591260 (diff)
downloadelgg-365e4fb08bbc5449d32e25e09face877afee4366.tar.gz
elgg-365e4fb08bbc5449d32e25e09face877afee4366.tar.bz2
Always show access level when listing blogs, regardless of canEdit().
git-svn-id: http://code.elgg.org/elgg/trunk@6466 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/blog/views/default/object/blog.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index 8fb7d3c59..3b63a661e 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -47,7 +47,10 @@ if ($blog->comments_on != 'Off') {
}
// links to delete or edit.
-$edit = '';
+
+// access is always shown.
+$edit = elgg_view('output/access', array('entity' => $vars['entity']));
+
if ($blog->canEdit()) {
$edit_url = "{$vars['url']}pg/blog/{$owner->username}/edit/{$blog->getGUID()}/";
$edit_link = "<span class='entity_edit'><a href=\"$edit_url\">" . elgg_echo('edit') . '</a></span>';
@@ -65,9 +68,7 @@ if ($blog->canEdit()) {
$status = "<span class='blog_status'>$status_text</span>";
}
- $access = elgg_view('output/access', array('entity' => $vars['entity']));
-
- $edit = "$access $status $edit_link $delete_link";
+ $edit .= "$status $edit_link $delete_link";
}
// include a view for plugins to extend