Fix double-menus in Herald transcripts
Summary: Fixes T2329. Adds crumbs and gets rid of the double-depth menus. Test Plan: Looked at transcript list, test controller and transcript detail. Reviewers: chad, btrahan Reviewed By: chad CC: aran Maniphest Tasks: T2329 Differential Revision: https://secure.phabricator.com/D4564
This commit is contained in:
@@ -125,6 +125,16 @@ final class HeraldTestConsoleController extends HeraldController {
|
|||||||
$panel,
|
$panel,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$crumbs = id($this->buildApplicationCrumbs())
|
||||||
|
->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName(pht('Transcripts'))
|
||||||
|
->setHref($this->getApplicationURI('/transcript/')))
|
||||||
|
->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName(pht('Test Console')));
|
||||||
|
$nav->setCrumbs($crumbs);
|
||||||
|
|
||||||
return $this->buildStandardPageResponse(
|
return $this->buildStandardPageResponse(
|
||||||
$nav,
|
$nav,
|
||||||
array(
|
array(
|
||||||
|
|||||||
@@ -70,12 +70,18 @@ final class HeraldTranscriptController extends HeraldController {
|
|||||||
$nav->appendChild($object_xscript_panel);
|
$nav->appendChild($object_xscript_panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
$main_nav = $this->renderNav();
|
$crumbs = id($this->buildApplicationCrumbs())
|
||||||
$main_nav->selectFilter('transcript');
|
->addCrumb(
|
||||||
$main_nav->appendChild($nav);
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName(pht('Transcripts'))
|
||||||
|
->setHref($this->getApplicationURI('/transcript/')))
|
||||||
|
->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName($xscript->getID()));
|
||||||
|
$nav->setCrumbs($crumbs);
|
||||||
|
|
||||||
return $this->buildStandardPageResponse(
|
return $this->buildStandardPageResponse(
|
||||||
$main_nav,
|
$nav,
|
||||||
array(
|
array(
|
||||||
'title' => 'Transcript',
|
'title' => 'Transcript',
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -99,6 +99,12 @@ final class HeraldTranscriptListController extends HeraldController {
|
|||||||
$nav->selectFilter('transcript');
|
$nav->selectFilter('transcript');
|
||||||
$nav->appendChild($panel);
|
$nav->appendChild($panel);
|
||||||
|
|
||||||
|
$crumbs = id($this->buildApplicationCrumbs())
|
||||||
|
->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName(pht('Transcripts')));
|
||||||
|
$nav->setCrumbs($crumbs);
|
||||||
|
|
||||||
return $this->buildStandardPageResponse(
|
return $this->buildStandardPageResponse(
|
||||||
$nav,
|
$nav,
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user