summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-21 13:12:26 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-21 13:12:26 -0500
commitf980089dd4ff86da19a1fbf44ebc22b8601ff633 (patch)
treeff13b7210e3518defd9293b2031279c827c1e630
parented9cb94ff3f95b1aa728584c887f5eefc1375201 (diff)
change showgroup to use profileminillist
-rw-r--r--actions/showgroup.php34
1 files changed, 6 insertions, 28 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index a1e89a3a3..c2cd3d295 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -347,36 +347,14 @@ class ShowgroupAction extends Action
$this->element('h2', null, _('Members'));
- $this->elementStart('ul', 'users');
-
- $cnt = 0;
-
- while ($member->fetch() && ++$cnt < MEMBERS_PER_SECTION) {
-
- $cnt++;
-
- $this->elementStart('li', 'vcard');
- $this->elementStart('a', array('title' => ($member->fullname) ?
- $member->fullname :
- $member->nickname,
- 'href' => $member->profileurl,
- 'rel' => 'contact',
- 'class' => 'url'));
- $avatar = $member->getAvatar(AVATAR_MINI_SIZE);
- $this->element('img', array('src' => (($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_MINI_SIZE)),
- 'width' => AVATAR_MINI_SIZE,
- 'height' => AVATAR_MINI_SIZE,
- 'class' => 'avatar photo',
- 'alt' => ($member->fullname) ?
- $member->fullname :
- $member->nickname));
- $this->element('span', 'fn nickname', $member->nickname);
- $this->elementEnd('a');
- $this->elementEnd('li');
+ if ($member) {
+ $pml = new ProfileMiniList($member, null, $this);
+ $cnt = $pml->show();
+ if ($cnt == 0) {
+ $this->element('p', null, _('(None)'));
+ }
}
- $this->elementEnd('ul');
-
if ($cnt == MEMBERS_PER_SECTION) {
$this->element('a', array('href' => common_local_url('groupmembers',
array('nickname' => $this->group->nickname))),