Changeset View
Changeset View
Standalone View
Standalone View
src/applications/uiexample/examples/PhabricatorStatusUIExample.php
Show All 27 Lines | $view->addItem( | ||||
->setIcon(PHUIStatusItemView::ICON_ADD, 'blue', pht('Has Peel')) | ->setIcon(PHUIStatusItemView::ICON_ADD, 'blue', pht('Has Peel')) | ||||
->setTarget(pht('Banana')) | ->setTarget(pht('Banana')) | ||||
->setNote(pht('Comes in bunches.')) | ->setNote(pht('Comes in bunches.')) | ||||
->setHighlighted(true)); | ->setHighlighted(true)); | ||||
$view->addItem( | $view->addItem( | ||||
id(new PHUIStatusItemView()) | id(new PHUIStatusItemView()) | ||||
->setIcon(PHUIStatusItemView::ICON_WARNING, 'dark', pht('Caution')) | ->setIcon(PHUIStatusItemView::ICON_WARNING, 'dark', pht('Caution')) | ||||
->setTarget(pht('Pomegranite')) | ->setTarget(pht('Pomegranate')) | ||||
->setNote(pht('Lots of seeds. Watch out.'))); | ->setNote(pht('Lots of seeds. Watch out.'))); | ||||
$view->addItem( | $view->addItem( | ||||
id(new PHUIStatusItemView()) | id(new PHUIStatusItemView()) | ||||
->setIcon(PHUIStatusItemView::ICON_REJECT, 'red', pht('Bleh!')) | ->setIcon(PHUIStatusItemView::ICON_REJECT, 'red', pht('Bleh!')) | ||||
->setTarget(pht('Zucchini')) | ->setTarget(pht('Zucchini')) | ||||
->setNote(pht('Slimy and gross. Yuck!'))); | ->setNote(pht('Slimy and gross. Yuck!'))); | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |