Page MenuHomePhabricator

D8191.id.diff
No OneTemporary

D8191.id.diff

Index: src/applications/project/controller/PhabricatorProjectBoardController.php
===================================================================
--- src/applications/project/controller/PhabricatorProjectBoardController.php
+++ src/applications/project/controller/PhabricatorProjectBoardController.php
@@ -19,6 +19,7 @@
$project = id(new PhabricatorProjectQuery())
->setViewer($viewer)
+ ->needImages(true)
->withIDs(array($this->id))
->executeOne();
if (!$project) {
@@ -133,19 +134,32 @@
->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 @@
return $this->buildApplicationPage(
array(
$crumbs,
- $header,
+ $box,
$board_box,
),
array(
Index: src/applications/project/controller/PhabricatorProjectProfileController.php
===================================================================
--- src/applications/project/controller/PhabricatorProjectProfileController.php
+++ src/applications/project/controller/PhabricatorProjectProfileController.php
@@ -226,13 +226,18 @@
}
$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;
}

File Metadata

Mime Type
text/plain
Expires
Oct 18 2024, 10:36 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6729013
Default Alt Text
D8191.id.diff (2 KB)

Event Timeline