Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/controller/PholioMockViewController.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
$xaction->getComment(), | $xaction->getComment(), | ||||
PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT); | PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT); | ||||
} | } | ||||
} | } | ||||
$engine->process(); | $engine->process(); | ||||
$title = $mock->getName(); | $title = $mock->getName(); | ||||
if ($mock->isClosed()) { | |||||
epriestley: This can use `isClosed()` now. | |||||
$header_icon = 'oh-closed'; | |||||
$header_name = pht('Closed'); | |||||
} else { | |||||
$header_icon = 'open'; | |||||
$header_name = pht('Open'); | |||||
} | |||||
$header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
->setHeader($title) | ->setHeader($title) | ||||
->setUser($user) | ->setUser($user) | ||||
->setStatus($header_icon, '', $header_name) | |||||
->setPolicyObject($mock); | ->setPolicyObject($mock); | ||||
$actions = $this->buildActionView($mock); | $actions = $this->buildActionView($mock); | ||||
$properties = $this->buildPropertyView($mock, $engine, $actions); | $properties = $this->buildPropertyView($mock, $engine, $actions); | ||||
require_celerity_resource('pholio-css'); | require_celerity_resource('pholio-css'); | ||||
require_celerity_resource('pholio-inline-comments-css'); | require_celerity_resource('pholio-inline-comments-css'); | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |
This can use isClosed() now.