Page MenuHomePhabricator

D7411.diff

diff --git a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
@@ -41,12 +41,10 @@
$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);

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/rp/b6/tlnvdq3y43l45527
Default Alt Text
D7411.diff (936 B)

Event Timeline