Differential D11354 Diff 27287 src/applications/project/controller/PhabricatorProjectEditMainController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectEditMainController.php
Show All 26 Lines | $project = id(new PhabricatorProjectQuery()) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$project) { | if (!$project) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
->setHeader(pht('Edit %s', $project->getName())) | ->setHeader(pht('Edit %s', $project->getName())) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setPolicyObject($project) | ->setPolicyObject($project); | ||||
->setImage($project->getProfileImageURI()); | |||||
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ACTIVE) { | if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ACTIVE) { | ||||
$header->setStatus('fa-check', 'bluegrey', pht('Active')); | $header->setStatus('fa-check', 'bluegrey', pht('Active')); | ||||
} else { | } else { | ||||
$header->setStatus('fa-ban', 'red', pht('Archived')); | $header->setStatus('fa-ban', 'red', pht('Archived')); | ||||
} | } | ||||
$actions = $this->buildActionListView($project); | $actions = $this->buildActionListView($project); | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |