Summary: Simplifies the Repository Management pages to the new fixed column layout. I've also moved "Status" into the Basics page, which feels better, and moved "Documentation" as a nav item to a button in the header. This removed "action list" and "curtain view" from the management panels and uses the new bits from Config/Phacility. Undecided if the icons should stay or go for the nav. Left them in for Diffusion. I want to update the EditEngine pages to display in this UI and not leave the portal, but I haven't dug into that this page. I'm a bit worried it will not easily be possible.
Test Plan:
Generate a svn, git, hg repository, test each of the new pages and each of the new buttons. Activate, deactivate, etc.
{F5164674}
Reviewers: epriestley
Reviewed By: epriestley
Spies: Korvin
Differential Revision: https://secure.phabricator.com/D18523
42 lines
927 B
PHP
42 lines
927 B
PHP
<?php
|
|
|
|
abstract class DiffusionRepositoryManageController
|
|
extends DiffusionController {
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
if ($this->hasDiffusionRequest()) {
|
|
$drequest = $this->getDiffusionRequest();
|
|
$repository = $drequest->getRepository();
|
|
|
|
$crumbs->addTextCrumb(
|
|
$repository->getDisplayName(),
|
|
$repository->getURI());
|
|
|
|
$crumbs->addTextCrumb(
|
|
pht('Manage'),
|
|
$repository->getPathURI('manage/'));
|
|
}
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
public function newBox($title, $content, $action = null) {
|
|
$header = id(new PHUIHeaderView())
|
|
->setHeader($title);
|
|
|
|
if ($action) {
|
|
$header->addActionItem($action);
|
|
}
|
|
|
|
$view = id(new PHUIObjectBoxView())
|
|
->setHeader($header)
|
|
->appendChild($content)
|
|
->setBackground(PHUIObjectBoxView::WHITE_CONFIG);
|
|
|
|
return $view;
|
|
}
|
|
|
|
}
|