mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-24 05:28:18 +01:00
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:
parent
c4cdb5c5f0
commit
7c23960de8
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue