Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIHeaderView.php
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | public function setStatus($icon, $color, $name) { | ||||
} | } | ||||
$img = id(new PHUIIconView()) | $img = id(new PHUIIconView()) | ||||
->setIconFont($icon); | ->setIconFont($icon); | ||||
$tag = phutil_tag( | $tag = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => "{$header_class} plr", | 'class' => "phui-header-status {$header_class}", | ||||
), | ), | ||||
array( | array( | ||||
$img, | $img, | ||||
$name, | $name, | ||||
)); | )); | ||||
return $this->addProperty(self::PROPERTY_STATUS, $tag); | return $this->addProperty(self::PROPERTY_STATUS, $tag); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |