Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/events/PhabricatorProjectUIEventListener.php
Show All 39 Lines | if ($project_phids) { | ||||
->execute(); | ->execute(); | ||||
} else { | } else { | ||||
$handles = array(); | $handles = array(); | ||||
} | } | ||||
if ($handles) { | if ($handles) { | ||||
$list = array(); | $list = array(); | ||||
foreach ($handles as $handle) { | foreach ($handles as $handle) { | ||||
$list[] = $handle->renderLink(); | $list[] = phutil_tag( | ||||
} | 'li', | ||||
$list = phutil_implode_html(phutil_tag('br'), $list); | array( | ||||
'class' => 'phabricator-handle-tag-list-item', | |||||
), | |||||
$handle->renderTag()); | |||||
} | |||||
$list = phutil_tag( | |||||
'ul', | |||||
array( | |||||
'class' => 'phabricator-handle-tag-list', | |||||
), | |||||
$list); | |||||
} else { | } else { | ||||
$list = phutil_tag('em', array(), pht('None')); | $list = phutil_tag('em', array(), pht('None')); | ||||
} | } | ||||
$view = $event->getValue('view'); | $view = $event->getValue('view'); | ||||
$view->addProperty(pht('Projects'), $list); | $view->addProperty(pht('Projects'), $list); | ||||
} | } | ||||
} | } |