return $cnt;
}
- function newListItem($profile, $odd)
+ function newListItem(Profile $profile, $odd)
{
return new SortableSubscriptionListItem($profile, $this->owner, $this->action, $odd);
}
function startProfile()
{
- $this->out->elementStart('td', 'entity_profile h-card e-content');
+ $this->out->elementStart('td', 'entity_profile h-card');
}
function endProfile()
function endActions()
{
+
+ // delete button
+ $cur = common_current_user();
+ list($action, $r2args) = $this->out->returnToArgs();
+ $r2args['action'] = $action;
+ if ($cur instanceof User && $cur->hasRight(Right::DELETEUSER)) {
+ $this->out->elementStart('li', 'entity_delete');
+ $df = new DeleteUserForm($this->out, $this->profile, $r2args);
+ $df->show();
+ $this->out->elementEnd('li');
+ }
+
$this->out->elementEnd('ul');
$this->out->elementEnd('td');
}