Differential D20802 Diff 49606 src/applications/spaces/controller/PhabricatorSpacesViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/spaces/controller/PhabricatorSpacesViewController.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | $list = id(new PHUIPropertyListView()) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
$list->addProperty( | $list->addProperty( | ||||
pht('Default Space'), | pht('Default Space'), | ||||
$space->getIsDefaultNamespace() | $space->getIsDefaultNamespace() | ||||
? pht('Yes') | ? pht('Yes') | ||||
: pht('No')); | : pht('No')); | ||||
$descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( | |||||
$viewer, | |||||
$space); | |||||
$list->addProperty( | |||||
pht('Editable By'), | |||||
$descriptions[PhabricatorPolicyCapability::CAN_EDIT]); | |||||
$description = $space->getDescription(); | $description = $space->getDescription(); | ||||
if (strlen($description)) { | if (strlen($description)) { | ||||
$description = new PHUIRemarkupView($viewer, $description); | $description = new PHUIRemarkupView($viewer, $description); | ||||
$list->addSectionHeader( | $list->addSectionHeader( | ||||
pht('Description'), | pht('Description'), | ||||
PHUIPropertyListView::ICON_SUMMARY); | PHUIPropertyListView::ICON_SUMMARY); | ||||
$list->addTextContent($description); | $list->addTextContent($description); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |