Policy, Status in PHUIHeaderView
Summary: The adds the ability to set 'properties' such as state, privacy, due date to the header of objects. Test Plan: Implemented in Paste, Pholio. Tested various states. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D7016
This commit is contained in:
@@ -95,7 +95,7 @@ final class DiffusionBrowseController extends DiffusionController {
|
||||
$box->addPadding(PHUI::PADDING_LARGE);
|
||||
$box->addMargin(PHUI::MARGIN_LARGE);
|
||||
|
||||
$header = id(new PhabricatorHeaderView())
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('README'));
|
||||
|
||||
$content[] = array(
|
||||
|
||||
@@ -85,7 +85,7 @@ final class DiffusionCommitController extends DiffusionController {
|
||||
'diffusion.commitparentsquery',
|
||||
array('commit' => $drequest->getCommit()));
|
||||
|
||||
$headsup_view = id(new PhabricatorHeaderView())
|
||||
$headsup_view = id(new PHUIHeaderView())
|
||||
->setHeader(nonempty($commit->getSummary(), pht('Commit Detail')));
|
||||
|
||||
$headsup_actions = $this->renderHeadsupActionList($commit, $repository);
|
||||
@@ -660,7 +660,7 @@ final class DiffusionCommitController extends DiffusionController {
|
||||
id(new AphrontFormSubmitControl())
|
||||
->setValue($is_serious ? pht('Submit') : pht('Cook the Books')));
|
||||
|
||||
$header = new PhabricatorHeaderView();
|
||||
$header = new PHUIHeaderView();
|
||||
$header->setHeader(
|
||||
$is_serious ? pht('Audit Commit') : pht('Creative Accounting'));
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ abstract class DiffusionController extends PhabricatorController {
|
||||
$handles = $this->loadViewerHandles($phids);
|
||||
$view->setHandles($handles);
|
||||
|
||||
$header = id(new PhabricatorHeaderView())
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Pending Differential Revisions'));
|
||||
|
||||
return array(
|
||||
|
||||
@@ -136,7 +136,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
private function buildPropertiesTable(PhabricatorRepository $repository) {
|
||||
$user = $this->getRequest()->getUser();
|
||||
|
||||
$header = id(new PhabricatorHeaderView())
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($repository->getName());
|
||||
|
||||
$view = id(new PhabricatorPropertyListView())
|
||||
|
||||
@@ -18,19 +18,19 @@ final class DiffusionRepositoryEditController extends DiffusionController {
|
||||
|
||||
$title = pht('Edit %s', $repository->getName());
|
||||
|
||||
$content[] = id(new PhabricatorHeaderView())
|
||||
$content[] = id(new PHUIHeaderView())
|
||||
->setHeader($title);
|
||||
|
||||
$content[] = $this->buildBasicActions($repository);
|
||||
$content[] = $this->buildBasicProperties($repository);
|
||||
|
||||
$content[] = id(new PhabricatorHeaderView())
|
||||
$content[] = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Text Encoding'));
|
||||
|
||||
$content[] = $this->buildEncodingActions($repository);
|
||||
$content[] = $this->buildEncodingProperties($repository);
|
||||
|
||||
$content[] = id(new PhabricatorHeaderView())
|
||||
$content[] = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Edit History'));
|
||||
|
||||
$xactions = id(new PhabricatorRepositoryTransactionQuery())
|
||||
|
||||
Reference in New Issue
Block a user