Something went wrong. Try again.
@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
Something went wrong. Try again.
927 B · 41 lines
PHP
123456789101112131415161718192021222324252627282930313233343536373839404142<?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; }
}