X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fusergroups.php;h=ded4ba76b1bc1bcd7371d33d91cd318008ba6a16;hb=5e816d7be208fc24419288234559c78da7391c8b;hp=62ad3b3a2e8c377083757617d44d91aa2cb092e4;hpb=26bc168c93731c82e95795efa38df60af49b2604;p=quix0rs-gnu-social.git diff --git a/actions/usergroups.php b/actions/usergroups.php index 62ad3b3a2e..ded4ba76b1 100644 --- a/actions/usergroups.php +++ b/actions/usergroups.php @@ -32,7 +32,7 @@ if (!defined('LACONICA')) { exit(1); } -define('GROUPS_PER_PAGE', 20); +require_once INSTALLDIR.'/lib/grouplist.php'; /** * User groups page @@ -52,6 +52,11 @@ class UsergroupsAction extends Action var $page = null; var $profile = null; + function isReadOnly() + { + return true; + } + function title() { if ($this->page == 1) { @@ -108,11 +113,24 @@ class UsergroupsAction extends Action function showLocalNav() { - // XXX: Add to the subscriptions tabset + $nav = new SubGroupNav($this, $this->user); + $nav->show(); } function showContent() { + $this->elementStart('p', array('id' => 'new_group')); + $this->element('a', array('href' => common_local_url('newgroup'), + 'class' => 'more'), + _('Create a new group')); + $this->elementEnd('p'); + + $this->elementStart('p', array('id' => 'group_search')); + $this->element('a', array('href' => common_local_url('groupsearch'), + 'class' => 'more'), + _('Search for more groups')); + $this->elementEnd('p'); + $offset = ($this->page-1) * GROUPS_PER_PAGE; $limit = GROUPS_PER_PAGE + 1;