Introduce some convenience methods for handle rendering
Summary: So I don't have to copy/paste everything again. Used them at places I could find with my limited `grep` skills. Test Plan: Visited hovercards, revision and tasks. No crashes. Reviewers: epriestley, btrahan, chad Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5592
This commit is contained in:
committed by
epriestley
parent
e1b8c9d261
commit
843d0bdcde
@@ -278,12 +278,9 @@ abstract class PhabricatorController extends AphrontController {
|
||||
throw new Exception("Unknown handle list style '{$style}'!");
|
||||
}
|
||||
|
||||
$items = array();
|
||||
foreach ($phids as $phid) {
|
||||
$items[] = $this->getHandle($phid)->renderLink();
|
||||
}
|
||||
|
||||
return phutil_implode_html($style_map[$style], $items);
|
||||
return implode_selected_handle_links($style_map[$style],
|
||||
$this->getLoadedHandles(),
|
||||
$phids);
|
||||
}
|
||||
|
||||
protected function buildApplicationMenu() {
|
||||
|
||||
Reference in New Issue
Block a user