diff --git a/src/view/layout/PhabricatorObjectItemListView.php b/src/view/layout/PhabricatorObjectItemListView.php index 33f61bcbb6..300c6909a7 100644 --- a/src/view/layout/PhabricatorObjectItemListView.php +++ b/src/view/layout/PhabricatorObjectItemListView.php @@ -1,6 +1,6 @@ stackable) { + $classes[] = 'phabricator-object-list-stackable'; + } + if ($this->cards) { + $classes[] = 'phabricator-object-list-cards'; + } + if ($this->flush) { + $classes[] = 'phabricator-object-list-flush'; + } + + return array( + 'class' => $classes, + ); + } + + protected function getTagContent() { require_celerity_resource('phabricator-object-item-list-view-css'); - $classes = array(); $header = null; if (strlen($this->header)) { $header = phutil_tag( @@ -73,28 +95,12 @@ final class PhabricatorObjectItemListView extends AphrontView { $pager = $this->pager; } - $classes[] = 'phabricator-object-item-list-view'; - if ($this->stackable) { - $classes[] = 'phabricator-object-list-stackable'; - } - if ($this->cards) { - $classes[] = 'phabricator-object-list-cards'; - } - if ($this->flush) { - $classes[] = 'phabricator-object-list-flush'; - } - - return phutil_tag( - 'ul', - array( - 'class' => implode(' ', $classes), - ), - array( - $header, - $items, - $pager, - $this->renderChildren(), - )); + return array( + $header, + $items, + $pager, + $this->renderChildren(), + ); } }