mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
9f36594100
Summary: Ref T10054. This shuffles some stuff around to move us closer to mocks in M1450 in terms of what information is on which pages. Home now has feed, members, watchers, link to "edit project / project edit history". History now has edit history, edit details, edit picture, archive/unarchive. Test Plan: New home page: {F1064889} New edit/history page: {F1064890} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10054 Differential Revision: https://secure.phabricator.com/D15060
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
final class PhabricatorProjectProfilePanelEngine
|
|
extends PhabricatorProfilePanelEngine {
|
|
|
|
protected function getPanelURI($path) {
|
|
$project = $this->getProfileObject();
|
|
$id = $project->getID();
|
|
return "/project/{$id}/panel/{$path}";
|
|
}
|
|
|
|
protected function getBuiltinProfilePanels($object) {
|
|
$panels = array();
|
|
|
|
$panels[] = $this->newPanel()
|
|
->setBuiltinKey(PhabricatorProject::PANEL_PROFILE)
|
|
->setPanelKey(PhabricatorProjectDetailsProfilePanel::PANELKEY);
|
|
|
|
$panels[] = $this->newPanel()
|
|
->setBuiltinKey(PhabricatorProject::PANEL_WORKBOARD)
|
|
->setPanelKey(PhabricatorProjectWorkboardProfilePanel::PANELKEY);
|
|
|
|
// TODO: This is temporary.
|
|
$uri = urisprintf(
|
|
'/maniphest/?statuses=open()&projects=%s#R',
|
|
$object->getPHID());
|
|
|
|
$panels[] = $this->newPanel()
|
|
->setBuiltinKey('tasks')
|
|
->setPanelKey(PhabricatorLinkProfilePanel::PANELKEY)
|
|
->setPanelProperty('icon', 'maniphest')
|
|
->setPanelProperty('name', pht('Open Tasks'))
|
|
->setPanelProperty('uri', $uri);
|
|
|
|
$panels[] = $this->newPanel()
|
|
->setBuiltinKey(PhabricatorProject::PANEL_MEMBERS)
|
|
->setPanelKey(PhabricatorProjectMembersProfilePanel::PANELKEY);
|
|
|
|
return $panels;
|
|
}
|
|
|
|
}
|