1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +01:00

Soft-launch project boards

Summary: Ref T1344. I don't think we'll need to destroy any data moving forward, and would like to get more feedback about what changes users want.

Test Plan: Looked at a project and clicked onto its board.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Maniphest Tasks: T1344

Differential Revision: https://secure.phabricator.com/D8191
This commit is contained in:
epriestley 2014-02-10 16:13:56 -08:00
parent 1ac28a7127
commit a3acf5fc4b
2 changed files with 25 additions and 6 deletions

View file

@ -19,6 +19,7 @@ final class PhabricatorProjectBoardController
$project = id(new PhabricatorProjectQuery())
->setViewer($viewer)
->needImages(true)
->withIDs(array($this->id))
->executeOne();
if (!$project) {
@ -133,19 +134,32 @@ final class PhabricatorProjectBoardController
->setUser($viewer)
->addAction(
id(new PhabricatorActionView())
->setName(pht('Add Column/Milestone/Sprint'))
->setName(pht('Add Column'))
->setHref($this->getApplicationURI('board/'.$this->id.'/edit/'))
->setIcon('create')
->setDisabled(!$can_edit)
->setWorkflow(!$can_edit));
$plist = id(new PHUIPropertyListView());
// TODO: Need this to get actions to render.
$plist->addProperty(pht('Ignore'), pht('This Property'));
$plist->addProperty(
pht('Project Boards'),
phutil_tag(
'em',
array(),
pht(
'This feature is beta, but should mostly work.')));
$plist->setActionList($actions);
$header = id(new PHUIObjectBoxView())
->setHeaderText($project->getName())
$header = id(new PHUIHeaderView())
->setHeader($project->getName())
->setUser($viewer)
->setImage($project->getProfileImageURI())
->setPolicyObject($project);
$box = id(new PHUIObjectBoxView())
->setHeader($header)
->addPropertyList($plist);
$board_box = id(new PHUIBoxView())
@ -155,7 +169,7 @@ final class PhabricatorProjectBoardController
return $this->buildApplicationPage(
array(
$crumbs,
$header,
$box,
$board_box,
),
array(

View file

@ -226,13 +226,18 @@ final class PhabricatorProjectProfileController
}
$view->addAction($action);
$view->addAction(
id(new PhabricatorActionView())
->setName(pht('View History'))
->setHref($this->getApplicationURI("history/{$id}/"))
->setIcon('transcript'));
$view->addAction(
id(new PhabricatorActionView())
->setName(pht('View Board (Beta)'))
->setHref($this->getApplicationURI("board/{$id}/"))
->setIcon('project'));
return $view;
}