]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/groups.php
Merge branch '0.7.x' into 0.8.x
[quix0rs-gnu-social.git] / actions / groups.php
index 206065d2636a8b29d9372e29ecf3f37bf3c5fbe4..26b52a5fcd4dde75618205ccb3716900a8a4d6b8 100644 (file)
@@ -51,6 +51,11 @@ class GroupsAction extends Action
     var $page = null;
     var $profile = null;
 
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
     function title()
     {
         if ($this->page == 1) {
@@ -95,9 +100,11 @@ class GroupsAction extends Action
 
     function showContent()
     {
+        $this->elementStart('p', array('id' => 'new_group'));
         $this->element('a', array('href' => common_local_url('newgroup'),
-                                  'id' => 'new_group'),
+                                  'class' => 'more'),
                        _('Create a new group'));
+        $this->elementEnd('p');
 
         $offset = ($this->page-1) * GROUPS_PER_PAGE;
         $limit =  GROUPS_PER_PAGE + 1;
@@ -119,5 +126,7 @@ class GroupsAction extends Action
     {
         $gbp = new GroupsByPostsSection($this);
         $gbp->show();
+        $gbm = new GroupsByMembersSection($this);
+        $gbm->show();
     }
 }