Make icon setting in Section Headers easier/consistent

Summary: You can already pass other icons, but this makes it a bit simpler.

Test Plan: Test Maniphest, Badges

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14131
This commit is contained in:
Chad Little
2015-09-19 11:29:01 -07:00
parent 9c43853815
commit 666f19e504
16 changed files with 36 additions and 21 deletions

View File

@@ -117,7 +117,8 @@ final class DrydockResourceViewController extends DrydockResourceController {
$attributes = $resource->getAttributes();
if ($attributes) {
$view->addSectionHeader(pht('Attributes'));
$view->addSectionHeader(
pht('Attributes'), 'fa-list-ul');
foreach ($attributes as $key => $value) {
$view->addProperty($key, $value);
}