Use status header stuff for "Edit Repository"
Summary: Ref T2231. Use status info element instead of tags.
Test Plan: {F75092}
Reviewers: chad, btrahan
Reviewed By: chad
CC: aran
Maniphest Tasks: T2231
Differential Revision: https://secure.phabricator.com/D7411
This commit is contained in:
@@ -41,12 +41,10 @@ final class DiffusionRepositoryEditMainController
|
|||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader($title);
|
->setHeader($title);
|
||||||
if (!$repository->isTracked()) {
|
if ($repository->isTracked()) {
|
||||||
$header->addTag(
|
$header->setStatus('oh-ok', '', pht('Active'));
|
||||||
id(new PhabricatorTagView())
|
} else {
|
||||||
->setType(PhabricatorTagView::TYPE_STATE)
|
$header->setStatus('policy-noone', '', pht('Inactive'));
|
||||||
->setName(pht('Inactive'))
|
|
||||||
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$basic_actions = $this->buildBasicActions($repository);
|
$basic_actions = $this->buildBasicActions($repository);
|
||||||
|
|||||||
Reference in New Issue
Block a user