Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Lines | if ($this->description) { | ||||
->setSlimShady(true) | ->setSlimShady(true) | ||||
->setMetaData(array( | ->setMetaData(array( | ||||
'map' => array( | 'map' => array( | ||||
$decription_id => 'phui-oi-description-reveal', | $decription_id => 'phui-oi-description-reveal', | ||||
), | ), | ||||
)); | )); | ||||
} | } | ||||
// Wrap the header content in a <span> with the "slippery" sigil. This | |||||
// prevents us from beginning a drag if you click the text (like "T123"), | |||||
// but not if you click the white space after the header. | |||||
$header = phutil_tag( | $header = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-oi-name', | 'class' => 'phui-oi-name', | ||||
), | ), | ||||
javelin_tag( | |||||
'span', | |||||
array( | |||||
'sigil' => 'slippery', | |||||
epriestley: I am only a tiny bit sad to lose this bit of silliness. | |||||
), | |||||
array( | array( | ||||
$this->headIcons, | $this->headIcons, | ||||
$header_name, | $header_name, | ||||
$header_link, | $header_link, | ||||
$description_tag, | $description_tag, | ||||
))); | )); | ||||
$icons = array(); | $icons = array(); | ||||
if ($this->icons) { | if ($this->icons) { | ||||
$icon_list = array(); | $icon_list = array(); | ||||
foreach ($this->icons as $spec) { | foreach ($this->icons as $spec) { | ||||
$icon = $spec['icon']; | $icon = $spec['icon']; | ||||
$icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
->setIcon($icon) | ->setIcon($icon) | ||||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |
I am only a tiny bit sad to lose this bit of silliness.