Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/phid/PhabricatorProjectProjectPHIDType.php
Show All 36 Lines | public function loadHandles( | ||||
foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
$project = $objects[$phid]; | $project = $objects[$phid]; | ||||
$name = $project->getName(); | $name = $project->getName(); | ||||
$id = $project->getID(); | $id = $project->getID(); | ||||
$slug = $project->getPrimarySlug(); | $slug = $project->getPrimarySlug(); | ||||
$handle->setName($name); | $handle->setName($name); | ||||
if (strlen($slug)) { | |||||
$handle->setObjectName('#'.$slug); | $handle->setObjectName('#'.$slug); | ||||
$handle->setURI("/tag/{$slug}/"); | $handle->setURI("/tag/{$slug}/"); | ||||
} else { | |||||
$handle->setURI("/project/view/{$id}/"); | |||||
} | |||||
$handle->setImageURI($project->getProfileImageURI()); | $handle->setImageURI($project->getProfileImageURI()); | ||||
$handle->setIcon($project->getIcon()); | $handle->setIcon($project->getDisplayIcon()); | ||||
$handle->setTagColor($project->getColor()); | $handle->setTagColor($project->getDisplayColor()); | ||||
if ($project->isArchived()) { | if ($project->isArchived()) { | ||||
$handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
public static function getProjectMonogramPatternFragment() { | public static function getProjectMonogramPatternFragment() { | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |