aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-12 12:26:22 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-12 12:26:22 +0000
commit13796cc18921229f16f9b387e360f1c908336671 (patch)
tree8a902de5b99350a2f1816479c7101cd5531fa877 /mod/bookmarks/views
parent4c7837dafcf4b1c68c011f178315f38285aa0030 (diff)
downloadelgg-13796cc18921229f16f9b387e360f1c908336671.tar.gz
elgg-13796cc18921229f16f9b387e360f1c908336671.tar.bz2
Updated and simplified generic entity listings metadata block (edit, delete, access) to not use tables.
git-svn-id: http://code.elgg.org/elgg/trunk@5375 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views')
-rw-r--r--mod/bookmarks/views/default/object/bookmarks.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php
index 833d160c6..fa5d6e30a 100644
--- a/mod/bookmarks/views/default/object/bookmarks.php
+++ b/mod/bookmarks/views/default/object/bookmarks.php
@@ -26,16 +26,16 @@ if($is_group instanceof ElggGroup){
//we decided to show that the item is in a group, rather than its actual access level
$object_acl = "Group: " . $is_group->name;
if($membership == 2)
- $access_level = "class='group_open'";
+ $access_level = "class='access_level group_open'";
else
- $access_level = "class='group_closed'";
+ $access_level = "class='access_level group_closed'";
}elseif($object_acl == 'Private'){
- $access_level = "class='private'";
+ $access_level = "class='access_level private'";
}else{
if(!in_array($object_acl, $general_access))
- $access_level = "class='shared_collection'";
+ $access_level = "class='access_level shared_collection'";
else
- $access_level = "class='entity_access'";
+ $access_level = "class='access_level entity_access'";
}
if($vars['entity']->description != '')
@@ -58,14 +58,14 @@ $delete .= "<span class='delete_button'>" . elgg_view('output/confirmlink',array
)) . "</span>";
}
- $info = "<div class='entity_metadata'><table><tr><td><span {$access_level}>{$object_acl}</span></td>";
+ $info = "<div class='entity_metadata'><span {$access_level}>{$object_acl}</span>";
//include edit and delete options
if($vars['entity']->canEdit()){
- $info .= "<td class='entity_edit'><a href=\"{$vars['url']}pg/bookmarks/{$owner->username}/edit/{$vars['entity']->getGUID()}\">" . elgg_echo('edit') . "</a></td>";
- $info .= "<td class='entity_delete'>".$delete."</td>";
+ $info .= "<span class='entity_edit'><a href=\"{$vars['url']}pg/bookmarks/{$owner->username}/edit/{$vars['entity']->getGUID()}\">" . elgg_echo('edit') . "</a></span>";
+ $info .= $delete;
}
- $info .= "</tr></table></div>";
+ $info .= "</div>";
$info .= "<p class='entity_title'><a href=\"{$vars['entity']->address}\" target=\"_blank\">{$vars['entity']->title}</a></p>";
$info .= "<p class='entity_subtext'>Bookmarked by <a href=\"{$vars['url']}pg/bookmarks/{$owner->username}\">{$owner->name}</a> {$friendlytime} {$view_notes}</p>";