mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 03:42:41 +01:00
e7f8e79742
Summary: Ref T6822. Test Plan: Visual inspection. These methods are only called from within `PhabricatorController` subclasses. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11241
26 lines
712 B
PHP
26 lines
712 B
PHP
<?php
|
|
|
|
abstract class DiffusionRepositoryEditController
|
|
extends DiffusionController {
|
|
|
|
protected function buildApplicationCrumbs($is_main = false) {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
if ($this->diffusionRequest) {
|
|
$repository = $this->getDiffusionRequest()->getRepository();
|
|
$repo_uri = $this->getRepositoryControllerURI($repository, '');
|
|
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
|
|
|
|
$crumbs->addTextCrumb('r'.$repository->getCallsign(), $repo_uri);
|
|
|
|
if ($is_main) {
|
|
$crumbs->addTextCrumb(pht('Edit Repository'));
|
|
} else {
|
|
$crumbs->addTextCrumb(pht('Edit'), $edit_uri);
|
|
}
|
|
}
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|