@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use header status/policy elements in Applications meta-application

Summary: Ref T603. Use more modern elements.

Test Plan: See screenshot.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D7264

+11 -18
+11 -18
src/applications/meta/controller/PhabricatorApplicationDetailViewController.php
··· 29 29 ->setName($selected->getName())); 30 30 31 31 $header = id(new PHUIHeaderView()) 32 - ->setHeader($title); 33 - 34 - $status_tag = id(new PhabricatorTagView()) 35 - ->setType(PhabricatorTagView::TYPE_STATE); 32 + ->setHeader($title) 33 + ->setUser($user) 34 + ->setPolicyObject($selected); 36 35 37 36 if ($selected->isInstalled()) { 38 - $status_tag->setName(pht('Installed')); 39 - $status_tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); 37 + $header->setStatus('open', 'green', pht('Installed')); 40 38 } else { 41 - $status_tag->setName(pht('Uninstalled')); 42 - $status_tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); 39 + $header->setStatus('open', 'red', pht('Uninstalled')); 43 40 } 44 - 45 - if ($selected->isBeta()) { 46 - $beta_tag = id(new PhabricatorTagView()) 47 - ->setType(PhabricatorTagView::TYPE_STATE) 48 - ->setName(pht('Beta')) 49 - ->setBackgroundColor(PhabricatorTagView::COLOR_GREY); 50 - $header->addTag($beta_tag); 51 - } 52 - 53 - $header->addTag($status_tag); 54 41 55 42 $properties = $this->buildPropertyView($selected); 56 43 $actions = $this->buildActionView($user, $selected); ··· 76 63 77 64 $properties = id(new PhabricatorPropertyListView()) 78 65 ->addProperty(pht('Description'), $application->getShortDescription()); 66 + 67 + if ($application->isBeta()) { 68 + $properties->addProperty( 69 + pht('Release'), 70 + pht('Beta')); 71 + } 79 72 80 73 $descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( 81 74 $viewer,