Link proxy column headers on workboards to proxied projects

Summary: Ref T10010. Allows you to click "Milestone 99" to jump directly to that project.

Test Plan:
  - Clicked milestone header, went to milestone.
  - Clicked normal column header, nothing happened. Wow!

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

Differential Revision: https://secure.phabricator.com/D15204
This commit is contained in:
epriestley
2016-02-06 16:25:18 -08:00
parent 4974e8487b
commit a45fe337a1
3 changed files with 46 additions and 1 deletions

View File

@@ -281,6 +281,13 @@ final class PhabricatorProjectBoardViewController
->setSubHeader($column->getDisplayType())
->addSigil('workpanel');
$proxy = $column->getProxy();
if ($proxy) {
$proxy_id = $proxy->getID();
$href = $this->getApplicationURI("view/{$proxy_id}/");
$panel->setHref($href);
}
$header_icon = $column->getHeaderIcon();
if ($header_icon) {
$panel->setHeaderIcon($header_icon);