Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | public function renderContextualDescription( | ||||
$out = array(); | $out = array(); | ||||
$out[] = sprintf( | $out[] = sprintf( | ||||
'| %s | %s |', | '| %s | %s |', | ||||
pht('Workspace ID'), | pht('Workspace ID'), | ||||
pht('Workspace Name')); | pht('Workspace Name')); | ||||
$out[] = '| ------------ | -------------- |'; | $out[] = '| ------------ | -------------- |'; | ||||
foreach ($workspaces as $workspace) { | foreach ($workspaces as $workspace) { | ||||
$out[] = sprintf('| `%s` | `%s` |', $workspace['id'], $workspace['name']); | $out[] = sprintf( | ||||
'| `%s` | `%s` |', | |||||
$workspace['gid'], | |||||
$workspace['name']); | |||||
} | } | ||||
$out = implode("\n", $out); | $out = implode("\n", $out); | ||||
$out = pht( | $out = pht( | ||||
"The Asana Workspaces your linked account has access to are:\n\n%s", | "The Asana Workspaces your linked account has access to are:\n\n%s", | ||||
$out); | $out); | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |