@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<?php
2
3abstract class DiffusionRepositoryManageController
4 extends DiffusionController {
5
6 protected function buildApplicationCrumbs() {
7 $crumbs = parent::buildApplicationCrumbs();
8
9 if ($this->hasDiffusionRequest()) {
10 $drequest = $this->getDiffusionRequest();
11 $repository = $drequest->getRepository();
12
13 $crumbs->addTextCrumb(
14 $repository->getDisplayName(),
15 $repository->getURI());
16
17 $crumbs->addTextCrumb(
18 pht('Manage'),
19 $repository->getPathURI('manage/'));
20 }
21
22 return $crumbs;
23 }
24
25 public function newBox($title, $content, $action = null) {
26 $header = id(new PHUIHeaderView())
27 ->setHeader($title);
28
29 if ($action) {
30 $header->addActionItem($action);
31 }
32
33 $view = id(new PHUIObjectBoxView())
34 ->setHeader($header)
35 ->appendChild($content)
36 ->setBackground(PHUIObjectBoxView::WHITE_CONFIG);
37
38 return $view;
39 }
40
41}