From 17b6649552a5000b71b3f789d742c560952bf420 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 2 Feb 2012 13:30:40 -0800 Subject: [PATCH] Add link to path in Owners package list Summary: Also changes rCALL in package detail to bold CALL. Test Plan: /owners/view/all/, click on link /owners/package/1/ Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1550 --- .../detail/PhabricatorOwnersDetailController.php | 2 +- .../controller/list/PhabricatorOwnersListController.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/applications/owners/controller/detail/PhabricatorOwnersDetailController.php b/src/applications/owners/controller/detail/PhabricatorOwnersDetailController.php index 404d198601..fc41b7b496 100644 --- a/src/applications/owners/controller/detail/PhabricatorOwnersDetailController.php +++ b/src/applications/owners/controller/detail/PhabricatorOwnersDetailController.php @@ -97,7 +97,7 @@ class PhabricatorOwnersDetailController extends PhabricatorOwnersController { $path_links = array(); foreach ($paths as $path) { $callsign = $handles[$path->getRepositoryPHID()]->getName(); - $repo = phutil_escape_html('r'.$callsign); + $repo = ''.phutil_escape_html($callsign).''; $path_link = phutil_render_tag( 'a', array( diff --git a/src/applications/owners/controller/list/PhabricatorOwnersListController.php b/src/applications/owners/controller/list/PhabricatorOwnersListController.php index 914143a191..6bb19ee203 100644 --- a/src/applications/owners/controller/list/PhabricatorOwnersListController.php +++ b/src/applications/owners/controller/list/PhabricatorOwnersListController.php @@ -215,7 +215,12 @@ class PhabricatorOwnersListController extends PhabricatorOwnersController { $repo = $handles[$path->getRepositoryPHID()]->getName(); $pkg_paths[$key] = ''.phutil_escape_html($repo).' '. - phutil_escape_html($path->getPath()); + phutil_render_tag( + 'a', + array( + 'href' => '/diffusion/'.$repo.'/browse/:'.$path->getPath(), + ), + phutil_escape_html($path->getPath())); } $pkg_paths = implode('
', $pkg_paths);