Adds 'setSubHead' to Objectlist
Summary: There are a few places a third text row in ObjectItemListView is needed or make things easier to read. Built and rolled out in Config. Test Plan: Tested in Config Groups. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5837
This commit is contained in:
@@ -4,6 +4,7 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
||||
|
||||
private $objectName;
|
||||
private $header;
|
||||
private $subhead;
|
||||
private $href;
|
||||
private $attributes = array();
|
||||
private $icons = array();
|
||||
@@ -61,6 +62,11 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setSubHead($subhead) {
|
||||
$this->subhead = $subhead;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHeader() {
|
||||
return $this->header;
|
||||
}
|
||||
@@ -284,6 +290,16 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
||||
$bylines);
|
||||
}
|
||||
|
||||
$subhead = null;
|
||||
if ($this->subhead) {
|
||||
$subhead = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-object-item-subhead',
|
||||
),
|
||||
$this->subhead);
|
||||
}
|
||||
|
||||
if ($icons) {
|
||||
$icons = phutil_tag(
|
||||
'div',
|
||||
@@ -315,6 +331,7 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
||||
));
|
||||
$first = false;
|
||||
}
|
||||
|
||||
$attrs = phutil_tag(
|
||||
'ul',
|
||||
array(
|
||||
@@ -353,6 +370,7 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
||||
'class' => implode(' ', $content_classes),
|
||||
),
|
||||
array(
|
||||
$subhead,
|
||||
$attrs,
|
||||
$this->renderChildren(),
|
||||
$foot,
|
||||
|
||||
Reference in New Issue
Block a user