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

@@ -294,7 +294,8 @@ final class DiffusionRepositoryEditMainController
$this->buildRepositoryUpdateInterval($repository));
$description = $repository->getDetail('description');
$view->addSectionHeader(pht('Description'));
$view->addSectionHeader(
pht('Description'), PHUIPropertyListView::ICON_SUMMARY);
if (!strlen($description)) {
$description = phutil_tag('em', array(), pht('No description provided.'));
} else {