From a8ee3db281672ea9bc7659bf193abbd61646e4d4 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 22 May 2015 07:13:40 -0700 Subject: [PATCH] [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 --- .../home/controller/PhabricatorHomeMainController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applications/home/controller/PhabricatorHomeMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php index 7d794a1136..2ce6da4f95 100644 --- a/src/applications/home/controller/PhabricatorHomeMainController.php +++ b/src/applications/home/controller/PhabricatorHomeMainController.php @@ -319,8 +319,12 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController { 'href' => $href, ), $title); + $icon = id(new PHUIIconView()) + ->setIconFont('fa-search') + ->setHref($href); $header = id(new PHUIHeaderView()) - ->setHeader($title); + ->setHeader($title) + ->addActionIcon($icon); return $header; }