Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/blog/PhameBlogManageController.php
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | $properties->addProperty( | ||||
'sigil' => 'has-tooltip', | 'sigil' => 'has-tooltip', | ||||
'meta' => array( | 'meta' => array( | ||||
'tip' => pht('Atom URI does not support custom domains.'), | 'tip' => pht('Atom URI does not support custom domains.'), | ||||
'size' => 320, | 'size' => 320, | ||||
), | ), | ||||
), | ), | ||||
$feed_uri)); | $feed_uri)); | ||||
$descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( | |||||
$viewer, | |||||
$blog); | |||||
$properties->addProperty( | |||||
pht('Editable By'), | |||||
$descriptions[PhabricatorPolicyCapability::CAN_EDIT]); | |||||
$engine = id(new PhabricatorMarkupEngine()) | $engine = id(new PhabricatorMarkupEngine()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->addObject($blog, PhameBlog::MARKUP_FIELD_DESCRIPTION) | ->addObject($blog, PhameBlog::MARKUP_FIELD_DESCRIPTION) | ||||
->process(); | ->process(); | ||||
$description = $blog->getDescription(); | $description = $blog->getDescription(); | ||||
if (strlen($description)) { | if (strlen($description)) { | ||||
$description = new PHUIRemarkupView($viewer, $description); | $description = new PHUIRemarkupView($viewer, $description); | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |