mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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())
|
||||
->setHeader($title);
|
||||
if (!$repository->isTracked()) {
|
||||
$header->addTag(
|
||||
id(new PhabricatorTagView())
|
||||
->setType(PhabricatorTagView::TYPE_STATE)
|
||||
->setName(pht('Inactive'))
|
||||
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK));
|
||||
if ($repository->isTracked()) {
|
||||
$header->setStatus('oh-ok', '', pht('Active'));
|
||||
} else {
|
||||
$header->setStatus('policy-noone', '', pht('Inactive'));
|
||||
}
|
||||
|
||||
$basic_actions = $this->buildBasicActions($repository);
|
||||
|
|
Loading…
Reference in a new issue