Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/view/PHUIPolicySectionView.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | public function appendHint($content) { | ||||
return $this->appendChild($hint); | return $this->appendChild($hint); | ||||
} | } | ||||
public function appendParagraph($content) { | public function appendParagraph($content) { | ||||
return $this->appendChild(phutil_tag('p', array(), $content)); | return $this->appendChild(phutil_tag('p', array(), $content)); | ||||
} | } | ||||
public function appendRulesView(PhabricatorPolicyRulesView $rules_view) { | |||||
return $this->appendChild( | |||||
phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'phui-policy-section-view-rules', | |||||
), | |||||
$rules_view)); | |||||
} | |||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
return array( | return array( | ||||
'class' => 'phui-policy-section-view', | 'class' => 'phui-policy-section-view', | ||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
require_celerity_resource('phui-header-view-css'); | require_celerity_resource('phui-policy-section-view-css'); | ||||
$icon_view = null; | $icon_view = null; | ||||
$icon = $this->getIcon(); | $icon = $this->getIcon(); | ||||
if ($icon !== null) { | if ($icon !== null) { | ||||
$icon_view = id(new PHUIIconView()) | $icon_view = id(new PHUIIconView()) | ||||
->setIcon($icon); | ->setIcon($icon); | ||||
} | } | ||||
Show All 31 Lines |