mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-07 09:59:27 +01:00
Add an "Mxx" crumb on the Pholio edit page
Summary: This crumb, which is consistently available in other applications, is not currently available in Pholio. Test Plan: Viewed an edit page, clicked the crumb. Reviewers: chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9542
This commit is contained in:
parent
3a36f1e31c
commit
2dfb2cd432
2 changed files with 8 additions and 1 deletions
|
@ -374,7 +374,10 @@ final class PholioMockEditController extends PholioController {
|
|||
->setForm($form);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb($title, $this->getApplicationURI());
|
||||
if (!$is_new) {
|
||||
$crumbs->addTextCrumb($mock->getMonogram(), '/'.$mock->getMonogram());
|
||||
}
|
||||
$crumbs->addTextCrumb($title);
|
||||
|
||||
$content = array(
|
||||
$crumbs,
|
||||
|
|
|
@ -41,6 +41,10 @@ final class PholioMock extends PholioDAO
|
|||
->setViewPolicy($view_policy);
|
||||
}
|
||||
|
||||
public function getMonogram() {
|
||||
return 'M'.$this->getID();
|
||||
}
|
||||
|
||||
public function getConfiguration() {
|
||||
return array(
|
||||
self::CONFIG_AUX_PHID => true,
|
||||
|
|
Loading…
Add table
Reference in a new issue