Make project page/navigation construction more consistent, particularly on mobile
Summary: Ref T10054. This mostly makes sure that mobile gets to have the same profile menu that Desktop does. Test Plan: - Viewed menus on mobile, saw all profile menu actions available. - Viewed/used changed pages (column detail, edit column, edit picture). Reviewers: chad Reviewed By: chad Maniphest Tasks: T10054 Differential Revision: https://secure.phabricator.com/D15008
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
abstract class PhabricatorProjectBoardController
|
||||
extends PhabricatorProjectController {
|
||||
|
||||
public function buildIconNavView(PhabricatorProject $project) {
|
||||
$id = $project->getID();
|
||||
$nav = parent::buildIconNavView($project);
|
||||
$nav->selectFilter(PhabricatorProject::PANEL_WORKBOARD);
|
||||
$nav->addClass('project-board-nav');
|
||||
return $nav;
|
||||
protected function getProfileMenu() {
|
||||
$menu = parent::getProfileMenu();
|
||||
|
||||
$menu->selectFilter(PhabricatorProject::PANEL_WORKBOARD);
|
||||
$menu->addClass('project-board-nav');
|
||||
|
||||
return $menu;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user