1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Show more repository information in Owners path editing dropdown

Summary: Fixes T11293.

Test Plan: {F1716175}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11293

Differential Revision: https://secure.phabricator.com/D16253
This commit is contained in:
epriestley 2016-07-08 04:17:26 -07:00
parent b656c87e37
commit c5efb453be

View file

@ -82,7 +82,13 @@ final class PhabricatorOwnersPathsController
}
}
$repos = mpull($repos, 'getDisplayName', 'getPHID');
$repo_map = array();
foreach ($repos as $key => $repo) {
$monogram = $repo->getMonogram();
$name = $repo->getName();
$repo_map[$repo->getPHID()] = "{$monogram} {$name}";
}
asort($repos);
$template = new AphrontTypeaheadTemplateView();
@ -94,7 +100,7 @@ final class PhabricatorOwnersPathsController
'root' => 'path-editor',
'table' => 'paths',
'add_button' => 'addpath',
'repositories' => $repos,
'repositories' => $repo_map,
'input_template' => $template,
'pathRefs' => $path_refs,