Differential D16153 Diff 38861 src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | if (isset($sources[$class])) { | ||||
array( | array( | ||||
'class' => 'small grey', | 'class' => 'small grey', | ||||
'name' => 'select', | 'name' => 'select', | ||||
'value' => $value, | 'value' => $value, | ||||
'disabled' => $disabled ? 'disabled' : null, | 'disabled' => $disabled ? 'disabled' : null, | ||||
), | ), | ||||
pht('Select')); | pht('Select')); | ||||
$attributes = $result->getAttributes(); | |||||
if ($attributes) { | |||||
$subtitle = phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'typeahead-browse-info', | |||||
), | |||||
phutil_implode_html(" \xC2\xB7 ", $attributes)); | |||||
} else { | |||||
$subtitle = null; | |||||
} | |||||
$items[] = phutil_tag( | $items[] = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'typeahead-browse-item grouped', | 'class' => 'typeahead-browse-item grouped', | ||||
), | ), | ||||
array( | array( | ||||
$token, | $token, | ||||
$button, | $button, | ||||
$subtitle, | |||||
)); | )); | ||||
} | } | ||||
$markup = array( | $markup = array( | ||||
$items, | $items, | ||||
$next_link, | $next_link, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |