Remove extra side navs in Herald
Summary: Ref T2769. Removes some nonstandard side navs. Test Plan: Viewed affected pages. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2769 Differential Revision: https://secure.phabricator.com/D6651
This commit is contained in:
@@ -60,7 +60,7 @@ final class HeraldNewController extends HeraldController {
|
|||||||
->setFlexible(true)
|
->setFlexible(true)
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new AphrontFormSelectControl())
|
id(new AphrontFormSelectControl())
|
||||||
->setLabel(pht('New rule for'))
|
->setLabel(pht('New Rule for'))
|
||||||
->setName('content_type')
|
->setName('content_type')
|
||||||
->setValue($this->contentType)
|
->setValue($this->contentType)
|
||||||
->setOptions($content_type_map))
|
->setOptions($content_type_map))
|
||||||
@@ -78,13 +78,11 @@ final class HeraldNewController extends HeraldController {
|
|||||||
->setHref($this->getApplicationURI(
|
->setHref($this->getApplicationURI(
|
||||||
'view/'.$this->contentType.'/'.$this->ruleType)));
|
'view/'.$this->contentType.'/'.$this->ruleType)));
|
||||||
|
|
||||||
$nav = $this->renderNav();
|
|
||||||
$nav->selectFilter('new');
|
|
||||||
$nav->appendChild($form);
|
|
||||||
$nav->setCrumbs($crumbs);
|
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
$nav,
|
array(
|
||||||
|
$crumbs,
|
||||||
|
$form,
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'title' => pht('Create Herald Rule'),
|
'title' => pht('Create Herald Rule'),
|
||||||
'device' => true,
|
'device' => true,
|
||||||
|
|||||||
@@ -179,21 +179,14 @@ final class HeraldRuleController extends HeraldController {
|
|||||||
->buildApplicationCrumbs()
|
->buildApplicationCrumbs()
|
||||||
->addCrumb(
|
->addCrumb(
|
||||||
id(new PhabricatorCrumbView())
|
id(new PhabricatorCrumbView())
|
||||||
->setName($title)
|
->setName($title));
|
||||||
->setHref('#'));
|
|
||||||
|
|
||||||
$nav = $this->renderNav();
|
|
||||||
$nav->setCrumbs($crumbs);
|
|
||||||
$nav->selectFilter(
|
|
||||||
'view/'.$rule->getContentType().'/'.$rule->getRuleType());
|
|
||||||
$nav->appendChild(
|
|
||||||
array(
|
|
||||||
$error_view,
|
|
||||||
$form,
|
|
||||||
));
|
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
$nav,
|
array(
|
||||||
|
$crumbs,
|
||||||
|
$error_view,
|
||||||
|
$form,
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'title' => pht('Edit Rule'),
|
'title' => pht('Edit Rule'),
|
||||||
'dust' => true,
|
'dust' => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user