1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00

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
This commit is contained in:
vrana 2012-02-02 13:30:40 -08:00
parent fe4d717cc7
commit 17b6649552
2 changed files with 7 additions and 2 deletions

View file

@ -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 = '<strong>'.phutil_escape_html($callsign).'</strong>';
$path_link = phutil_render_tag(
'a',
array(

View file

@ -215,7 +215,12 @@ class PhabricatorOwnersListController extends PhabricatorOwnersController {
$repo = $handles[$path->getRepositoryPHID()]->getName();
$pkg_paths[$key] =
'<strong>'.phutil_escape_html($repo).'</strong> '.
phutil_escape_html($path->getPath());
phutil_render_tag(
'a',
array(
'href' => '/diffusion/'.$repo.'/browse/:'.$path->getPath(),
),
phutil_escape_html($path->getPath()));
}
$pkg_paths = implode('<br />', $pkg_paths);