move block form

This commit is contained in:
Evan Prodromou 2009-01-26 17:14:08 +01:00
parent 8d95151f7a
commit 91e63866fb
2 changed files with 8 additions and 1 deletions

View 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',

View 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');
}