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:
Anh Nhan Nguyen
2013-04-05 17:01:35 -07:00
committed by epriestley
parent e1b8c9d261
commit 843d0bdcde
6 changed files with 54 additions and 29 deletions

View File

@@ -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() {