diff --git a/lib/groupnav.php b/lib/groupnav.php index 33f77bef9b..e363995655 100644 --- a/lib/groupnav.php +++ b/lib/groupnav.php @@ -119,15 +119,6 @@ class GroupNav extends Menu sprintf(_m('TOOLTIP','%s blocked users'), $nickname), $action_name == 'blockedfromgroup', 'nav_group_blocked'); - $this->out->menuItem(common_local_url('editgroup', array('nickname' => - $nickname)), - // TRANS: Menu item in the group navigation page. Only shown for group administrators. - _m('MENU','Admin'), - // TRANS: Tooltip for menu item in the group navigation page. Only shown for group administrators. - // TRANS: %s is the nickname of the group. - sprintf(_m('TOOLTIP','Edit %s group properties'), $nickname), - $action_name == 'editgroup', - 'nav_group_admin'); $this->out->menuItem(common_local_url('grouplogo', array('nickname' => $nickname)), // TRANS: Menu item in the group navigation page. Only shown for group administrators. diff --git a/lib/groupprofileblock.php b/lib/groupprofileblock.php index 10dddb8467..b5f23d288e 100644 --- a/lib/groupprofileblock.php +++ b/lib/groupprofileblock.php @@ -112,12 +112,24 @@ class GroupProfileBlock extends ProfileBlock Event::handle('EndGroupSubscribe', array($this, $this->group)); } $this->out->elementEnd('li'); + if ($cur && $cur->isAdmin($this->group)) { + $this->out->elementStart('li', 'entity_edit'); + $this->out->element('a', array('href' => common_local_url('editgroup', + array('nickname' => $this->group->nickname)), + // TRANS: Tooltip for menu item in the group navigation page. Only shown for group administrators. + // TRANS: %s is the nickname of the group. + 'title' => sprintf(_m('TOOLTIP','Edit %s group properties'), $nickname)), + // TRANS: Link text for link on user profile. + _m('BUTTON','Edit')); + $this->out->elementEnd('li'); + } if ($cur && $cur->hasRight(Right::DELETEGROUP)) { $this->out->elementStart('li', 'entity_delete'); $df = new DeleteGroupForm($this->out, $this->group); $df->show(); $this->out->elementEnd('li'); } + Event::handle('EndGroupActionsList', array($this, $this->group)); } $this->out->elementEnd('ul');