mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
35e7a1f3c0
Summary: Ref T4245. More of the same, just narrowing down the easy cases. Test Plan: - Called `diffusion.querycommit`. - Browsed branches. - Browsed repository. - Browsed directory. - Searched for stuff. - Viewed a commit. - Viewed a file diff. - Edited a commit. - Viewed history. - Viewed tags. - Viewed push log. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4245 Differential Revision: https://secure.phabricator.com/D14929
26 lines
682 B
PHP
26 lines
682 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 = $repository->getURI();
|
|
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
|
|
|
|
$crumbs->addTextCrumb($repository->getDisplayname(), $repo_uri);
|
|
|
|
if ($is_main) {
|
|
$crumbs->addTextCrumb(pht('Edit Repository'));
|
|
} else {
|
|
$crumbs->addTextCrumb(pht('Edit'), $edit_uri);
|
|
}
|
|
}
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|