diff --git a/src/applications/meta/controller/PhabricatorApplicationDetailViewController.php b/src/applications/meta/controller/PhabricatorApplicationDetailViewController.php index 6b6e3a26fa..a8631347fe 100644 --- a/src/applications/meta/controller/PhabricatorApplicationDetailViewController.php +++ b/src/applications/meta/controller/PhabricatorApplicationDetailViewController.php @@ -29,29 +29,16 @@ final class PhabricatorApplicationDetailViewController ->setName($selected->getName())); $header = id(new PHUIHeaderView()) - ->setHeader($title); - - $status_tag = id(new PhabricatorTagView()) - ->setType(PhabricatorTagView::TYPE_STATE); + ->setHeader($title) + ->setUser($user) + ->setPolicyObject($selected); if ($selected->isInstalled()) { - $status_tag->setName(pht('Installed')); - $status_tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); + $header->setStatus('open', 'green', pht('Installed')); } else { - $status_tag->setName(pht('Uninstalled')); - $status_tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); + $header->setStatus('open', 'red', pht('Uninstalled')); } - if ($selected->isBeta()) { - $beta_tag = id(new PhabricatorTagView()) - ->setType(PhabricatorTagView::TYPE_STATE) - ->setName(pht('Beta')) - ->setBackgroundColor(PhabricatorTagView::COLOR_GREY); - $header->addTag($beta_tag); - } - - $header->addTag($status_tag); - $properties = $this->buildPropertyView($selected); $actions = $this->buildActionView($user, $selected); @@ -77,6 +64,12 @@ final class PhabricatorApplicationDetailViewController $properties = id(new PhabricatorPropertyListView()) ->addProperty(pht('Description'), $application->getShortDescription()); + if ($application->isBeta()) { + $properties->addProperty( + pht('Release'), + pht('Beta')); + } + $descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( $viewer, $application);