aboutsummaryrefslogtreecommitdiff
path: root/views/default/annotation/generic_comment.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-24 17:06:39 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-24 17:06:39 -0700
commit946a4a008ab2bc3f3a530558ae47581f9d8fbbcb (patch)
tree069a3f49d498f2f81dfd6b36a61090d517fea57f /views/default/annotation/generic_comment.php
parentb1cbcfa842abf670c2b5805eb45bc8314836bb2d (diff)
downloadelgg-946a4a008ab2bc3f3a530558ae47581f9d8fbbcb.tar.gz
elgg-946a4a008ab2bc3f3a530558ae47581f9d8fbbcb.tar.bz2
Refs #3750. Added annotation menu for generic comments (delete) and default annotations (empty).
Diffstat (limited to 'views/default/annotation/generic_comment.php')
-rw-r--r--views/default/annotation/generic_comment.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php
index 69520d102..a4fbf904e 100644
--- a/views/default/annotation/generic_comment.php
+++ b/views/default/annotation/generic_comment.php
@@ -29,23 +29,17 @@ $entity_title = $entity->title ? $entity->title : elgg_echo('untitled');
$entity_link = "<a href=\"{$entity->getURL()}\">$entity_title</a>";
if ($full_view) {
-
- $delete_button = '';
- if ($comment->canEdit()) {
- $url = "action/comments/delete?annotation_id=$comment->id";
- $delete_button = elgg_view("output/confirmlink", array(
- 'href' => $url,
- 'text' => "<span class=\"elgg-icon elgg-icon-delete right\"></span>",
- 'confirm' => elgg_echo('deleteconfirm'),
- 'text_encode' => false,
- ));
- }
+ $menu = elgg_view_menu('annotation', array(
+ 'annotation' => $comment,
+ 'sort_by' => 'priority',
+ 'class' => 'elgg-menu-hz right',
+ ));
$comment_text = elgg_view("output/longtext", array("value" => $comment->value));
$body = <<<HTML
<div class="mbn">
- $delete_button
+ $menu
$commenter_link
<span class="elgg-subtext">
$friendlytime