]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move block form
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 26 Jan 2009 16:14:08 +0000 (17:14 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 26 Jan 2009 16:14:08 +0000 (17:14 +0100)
actions/subscribers.php
lib/profilelist.php

index fb8733c773ce494f5f31273f902ae486bee972d7..e88cbf693a729f9e0e08669459fd87b1d2e451b7 100644 (file)
@@ -96,7 +96,7 @@ class SubscribersAction extends GalleryAction
 
 class SubscribersList extends ProfileList
 {
-    function showOwnerControls($profile)
+    function showBlockForm()
     {
         $bf = new BlockForm($this->out, $profile,
                             array('action' => 'subscribers',
index 499d74f7b58400552fc76314a6b8241a1c94afdf..3bc109fa0d26655b9af0b60b9b74e93e5749a9a5 100644 (file)
@@ -191,6 +191,8 @@ class ProfileList extends Widget
 
         $this->out->elementEnd('div');
 
+        $this->out->elementStart('div', 'entity_actions');
+
         if ($user && $user->id != $this->profile->id) {
             # XXX: special-case for user looking at own
             # subscriptions page
@@ -201,8 +203,13 @@ class ProfileList extends Widget
                 $sf = new SubscribeForm($this->out, $this->profile);
                 $sf->show();
             }
+            if ($user && $user->id == $this->owner->id) {
+                $this->showBlockForm();
+            }
         }
 
+        $this->out->elementEnd('div');
+
         $this->out->elementEnd('li');
     }