diff options
Diffstat (limited to 'mod/groups/views/default/object')
-rw-r--r-- | mod/groups/views/default/object/groupforumtopic.php | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index 9ebf81642..8c95dd594 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -25,7 +25,7 @@ if ($last_post) { $u = get_user($last_user); //select the correct output depending on where you are -if(get_context() == "search"){ +if (get_context() == "search") { var_export($counter); if($counter == 1){ $info = "<p class='entity_subtext groups'>" . sprintf(elgg_echo('groups:forum:created:single'), $forum_created, $counter) . "<br />"; @@ -42,7 +42,7 @@ if(get_context() == "search"){ $info .= "<p class='entity_title'><b>" . elgg_echo('group') . ":</b> <a href=\"{$group->getURL()}\">".htmlentities($group->name, ENT_QUOTES, 'UTF-8') ."</a></p>"; } -}else{ +} else { if($counter == 1){ $info = "<p class='entity_subtext groups'>" . sprintf(elgg_echo('groups:forum:created:single'), $forum_created, $counter) . "</p>"; }else{ @@ -52,11 +52,20 @@ if(get_context() == "search"){ if (groups_can_edit_discussion($vars['entity'], page_owner_entity()->owner_guid)) { // display the delete link to those allowed to delete - $info .= "<div class='delete_button'>" . elgg_view("output/confirmlink", array( + $info .= "<div class='entity_metadata'>"; + $info .= '<span class="entity_edit">' . elgg_view("output/url", array( + 'href' => $vars['url'] . "mod/groups/edittopic.php?group={$vars['entity']->container_guid}&topic={$vars['entity']->guid}", + 'text' => elgg_echo('edit'), + )); + $info .= '</span>'; + + // display the delete link to those allowed to delete + $info .= '<span class="delete_button">' . elgg_view("output/confirmlink", array( 'href' => $vars['url'] . "action/groups/deletetopic?topic=" . $vars['entity']->guid . "&group=" . $vars['entity']->container_guid, - 'text' => " ", + 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm'), - )) . "</div>"; + )); + $info .= "</span></div>"; } |