Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/phid/PhabricatorProjectProjectPHIDType.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | foreach ($handles as $phid => $handle) { | ||||
$slug = $project->getPrimarySlug(); | $slug = $project->getPrimarySlug(); | ||||
$handle->setName($name); | $handle->setName($name); | ||||
if (strlen($slug)) { | if (strlen($slug)) { | ||||
$handle->setObjectName('#'.$slug); | $handle->setObjectName('#'.$slug); | ||||
$handle->setURI("/tag/{$slug}/"); | $handle->setURI("/tag/{$slug}/"); | ||||
} else { | } else { | ||||
// We set the name to the project's PHID to avoid a parse error when a | |||||
// project has no hashtag (as is the case with milestones by default). | |||||
// See T12659 for more details | |||||
$handle->setCommandLineObjectName($project->getPHID()); | |||||
$handle->setURI("/project/view/{$id}/"); | $handle->setURI("/project/view/{$id}/"); | ||||
} | } | ||||
$handle->setImageURI($project->getProfileImageURI()); | $handle->setImageURI($project->getProfileImageURI()); | ||||
$handle->setIcon($project->getDisplayIconIcon()); | $handle->setIcon($project->getDisplayIconIcon()); | ||||
$handle->setTagColor($project->getDisplayColor()); | $handle->setTagColor($project->getDisplayColor()); | ||||
if ($project->isArchived()) { | if ($project->isArchived()) { | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |