[Redesign] Add ActionIcon to home panels

Summary: Ref T8099, adds an action icon similar to dashboards for taking people to the search.

Test Plan: Click on each icon, verify it takes me to correct URL.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D12974
This commit is contained in:
Chad Little
2015-05-22 07:13:40 -07:00
parent 039bc12692
commit a8ee3db281

View File

@@ -319,8 +319,12 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
'href' => $href, 'href' => $href,
), ),
$title); $title);
$icon = id(new PHUIIconView())
->setIconFont('fa-search')
->setHref($href);
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setHeader($title); ->setHeader($title)
->addActionIcon($icon);
return $header; return $header;
} }