Make Fund backers render a little more nicely

Summary: Ref T5835. Mostly UI smoothing. Also add a "Risks" field to initiatives.

Test Plan: {F214952}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5835

Differential Revision: https://secure.phabricator.com/D10660
This commit is contained in:
epriestley
2014-10-08 05:32:42 -07:00
parent 65421a9e3e
commit 43215bf0bd
8 changed files with 69 additions and 21 deletions

View File

@@ -96,7 +96,7 @@ final class FundInitiativeViewController
$this->getHandle($owner_phid)->renderLink());
$view->addProperty(
pht('Payable To Merchant'),
pht('Payable to Merchant'),
$this->getHandle($merchant_phid)->renderLink());
$view->addProperty(
@@ -116,6 +116,17 @@ final class FundInitiativeViewController
$view->addTextContent($description);
}
$risks = $initiative->getRisks();
if (strlen($risks)) {
$risks = PhabricatorMarkupEngine::renderOneObject(
id(new PhabricatorMarkupOneOff())->setContent($risks),
'default',
$viewer);
$view->addSectionHeader(pht('Risks/Challenges'));
$view->addTextContent($risks);
}
return $view;
}