Token support for Phriction Documents, Ponder Questions, and Phame Blogs

Summary:
Ref T3023

Token support for Phriction Documents, Ponder Questions, and Phame Blogs

Test Plan: Token notifications and visual display seems to be working for the above types

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, AnhNhan

Maniphest Tasks: T3023

Differential Revision: https://secure.phabricator.com/D5862
This commit is contained in:
deedydas
2013-05-09 14:40:43 -07:00
committed by epriestley
parent 78a8079f59
commit 3d16eb5e57
8 changed files with 128 additions and 115 deletions

View File

@@ -162,7 +162,9 @@ final class PhamePostViewController extends PhameController {
PhamePost $post,
PhabricatorUser $user) {
$properties = new PhabricatorPropertyListView();
$properties = id(new PhabricatorPropertyListView())
->setUser($user)
->setObject($post);
$descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions(
$user,
@@ -193,6 +195,8 @@ final class PhamePostViewController extends PhameController {
->addObject($post, PhamePost::MARKUP_FIELD_BODY)
->process();
$properties->invokeWillRenderEvent();
$properties->addTextContent(
phutil_tag(
'div',