diff options
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/groups/membershiprequests.php | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php index f442c1a93..9279e2bee 100644 --- a/mod/groups/views/default/groups/membershiprequests.php +++ b/mod/groups/views/default/groups/membershiprequests.php @@ -1,3 +1,5 @@ +<div class="contentWrapper">
+
<?php
if (!empty($vars['requests']) && is_array($vars['requests'])) {
@@ -7,13 +9,35 @@ ?>
<div class="reportedcontent_content active_report">
- <p class="reportedcontent_detail">
+ <div class="groups_membershiprequest_buttons">
<?php
-
- echo $request->name;
+
+ echo str_replace('<a', '<a class="delete_report_button" ', elgg_view('output/confirmlink',array(
+ 'href' => $vars['url'] . 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid,
+ 'confirm' => elgg_echo('groups:joinrequest:remove:check'),
+ 'text' => elgg_echo('delete'),
+ )));
?>
+ <a href="<?php echo $vars['url']; ?>action/groups/addtogroup?user_guid=<?php echo $request->guid; ?>&group_guid=<?php echo $vars['entity']->guid; ?>" class="archive_report_button"><?php echo elgg_echo('accept'); ?></a>
+ </div>
+ <p class="reportedcontent_detail">
+ <a href="<?php echo $request->getURL(); ?>"><?php echo $request->name; ?></a>
+ </p>
+ <?php
+
+ $status = elgg_view("profile/status", array("entity" => $request));
+ if (!empty($status)) {
+
+ ?>
+ <p class="reportedcontent_detail">
+ <?php echo $status; ?>
</p>
+ <?php
+
+ } else echo "<p class=\"reportedcontent_detail\"> </p>";
+
+ ?>
</div>
<?php
@@ -21,10 +45,9 @@ } else {
- echo "<div class=\"contentWrapper\">";
echo "<p>" . elgg_echo('groups:requests:none') . "</p>";
- echo "</div>";
}
-?>
\ No newline at end of file +?>
+</div>
\ No newline at end of file |