Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIWorkpanelView.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | if ($this->footerAction) { | ||||
$footer = phutil_tag( | $footer = phutil_tag( | ||||
'ul', | 'ul', | ||||
array( | array( | ||||
'class' => 'phui-workpanel-footer-action mst ps' | 'class' => 'phui-workpanel-footer-action mst ps' | ||||
), | ), | ||||
$footer_tag); | $footer_tag); | ||||
} | } | ||||
$header_edit = null; | |||||
if ($this->editURI) { | |||||
$header_edit = id(new PHUIIconView()) | $header_edit = id(new PHUIIconView()) | ||||
->setSpriteSheet(PHUIIconView::SPRITE_ACTIONS) | ->setSpriteSheet(PHUIIconView::SPRITE_ACTIONS) | ||||
->setSpriteIcon('settings-grey') | ->setSpriteIcon('settings-grey') | ||||
->setHref($this->editURI); | ->setHref($this->editURI); | ||||
} | |||||
$header = id(new PhabricatorActionHeaderView()) | $header = id(new PhabricatorActionHeaderView()) | ||||
->setHeaderTitle($this->header) | ->setHeaderTitle($this->header) | ||||
->setHeaderColor($this->headerColor) | ->setHeaderColor($this->headerColor); | ||||
->addAction($header_edit); | if ($header_edit) { | ||||
$header->addAction($header_edit); | |||||
} | |||||
$body = phutil_tag( | $body = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-workpanel-body' | 'class' => 'phui-workpanel-body' | ||||
), | ), | ||||
$this->cards); | $this->cards); | ||||
Show All 14 Lines |