2013-05-24 21:37:42 +02:00
|
|
|
<?php
|
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
abstract class DiffusionRepositoryEditController
|
|
|
|
extends DiffusionController {
|
2013-05-24 21:37:42 +02:00
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
public function buildApplicationCrumbs() {
|
|
|
|
$crumbs = parent::buildApplicationCrumbs();
|
2013-05-24 21:37:42 +02:00
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
if ($this->diffusionRequest) {
|
|
|
|
$repository = $this->getDiffusionRequest()->getRepository();
|
|
|
|
$repo_uri = $this->getRepositoryControllerURI($repository, '');
|
|
|
|
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
|
2013-10-26 00:58:02 +02:00
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
$crumbs->addCrumb(
|
|
|
|
id(new PhabricatorCrumbView())
|
|
|
|
->setName('r'.$repository->getCallsign())
|
|
|
|
->setHref($repo_uri));
|
2013-10-25 22:58:15 +02:00
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
$crumbs->addCrumb(
|
|
|
|
id(new PhabricatorCrumbView())
|
|
|
|
->setName(pht('Edit'))
|
|
|
|
->setHref($edit_uri));
|
2013-10-25 22:58:03 +02:00
|
|
|
}
|
|
|
|
|
2013-10-26 00:58:58 +02:00
|
|
|
return $crumbs;
|
2013-10-25 22:59:02 +02:00
|
|
|
}
|
|
|
|
|
2013-05-24 21:37:42 +02:00
|
|
|
}
|