1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Improve page titles for menu items that render in-context content

Summary: Ref T12174. Dashboards and "Home" currently use the page title "Configure Menu". Give them more appropriate titles instead.

Test Plan: Viewed dashboards, Home. Saw relevant page titles.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12174

Differential Revision: https://secure.phabricator.com/D17281
This commit is contained in:
epriestley 2017-01-31 13:28:50 -08:00
parent 4890d66795
commit e8c5758192

View file

@ -214,6 +214,9 @@ abstract class PhabricatorProfileMenuEngine extends Phobject {
}
}
}
$page_title = pht('Configure Menu');
} else {
$page_title = $selected_item->getDisplayName();
}
switch ($item_action) {
@ -293,10 +296,8 @@ abstract class PhabricatorProfileMenuEngine extends Phobject {
$crumbs->setBorder(true);
// TODO: This title is not correct when viewing items.
$page = $controller->newPage()
->setTitle(pht('Configure Menu'))
->setTitle($page_title)
->setCrumbs($crumbs)
->appendChild($content);