Differential D20802 Diff 49606 src/applications/passphrase/controller/PassphraseCredentialViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/controller/PassphraseCredentialViewController.php
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | private function buildPropertySectionView( | ||||
$properties = id(new PHUIPropertyListView()) | $properties = id(new PHUIPropertyListView()) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
$properties->addProperty( | $properties->addProperty( | ||||
pht('Credential Type'), | pht('Credential Type'), | ||||
$type->getCredentialTypeName()); | $type->getCredentialTypeName()); | ||||
$descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( | |||||
$viewer, | |||||
$credential); | |||||
$properties->addProperty( | |||||
pht('Editable By'), | |||||
$descriptions[PhabricatorPolicyCapability::CAN_EDIT]); | |||||
if ($type->shouldRequireUsername()) { | if ($type->shouldRequireUsername()) { | ||||
$properties->addProperty( | $properties->addProperty( | ||||
pht('Username'), | pht('Username'), | ||||
$credential->getUsername()); | $credential->getUsername()); | ||||
} | } | ||||
$description = $credential->getDescription(); | $description = $credential->getDescription(); | ||||
if (strlen($description)) { | if (strlen($description)) { | ||||
Show All 11 Lines |