From 1499a5e048ac64c8a51c67ba6e612d72652c30c8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 21 Jan 2009 09:55:44 -0500 Subject: Add tabset to group and admin tabs --- actions/editgroup.php | 8 ++++++++ actions/showgroup.php | 6 ++++++ lib/groupnav.php | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/actions/editgroup.php b/actions/editgroup.php index 5f853a089..e0d4c0d03 100644 --- a/actions/editgroup.php +++ b/actions/editgroup.php @@ -96,6 +96,8 @@ class EditgroupAction extends Action $this->clientError(_('No such group'), 404); return false; } + + return true; } /** @@ -124,6 +126,12 @@ class EditgroupAction extends Action $this->showPage(); } + function showLocalNav() + { + $nav = new GroupNav($this, $this->group); + $nav->show(); + } + function showContent() { $form = new GroupEditForm($this, $this->group); diff --git a/actions/showgroup.php b/actions/showgroup.php index f404c648d..5c72996bf 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -144,6 +144,12 @@ class ShowgroupAction extends Action $this->showPage(); } + function showLocalNav() + { + $nav = new GroupNav($this, $this->group); + $nav->show(); + } + /** * Show the page content * diff --git a/lib/groupnav.php b/lib/groupnav.php index 2762949ad..c499d6bff 100644 --- a/lib/groupnav.php +++ b/lib/groupnav.php @@ -83,7 +83,7 @@ class GroupNav extends Widget $nickname)), _('Group'), sprintf(_('%s group'), $nickname), - $action_name == 'all', + $action_name == 'group', 'nav_group_group'); $this->out->menuItem(common_local_url('groupmembers', array('nickname' => $nickname)), -- cgit v1.2.3-54-g00ecf