Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F79261
D7411.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
936 B
Referenced Files
None
Subscribers
None
D7411.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7411: Use status header stuff for "Edit Repository"
Attached
Detach File
Event Timeline
Log In to Comment