mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 04:31:13 +01:00
Add slugs to project manage page
Summary: Minor, just shows the slugs on the manage project page, also normalized language to "details" Test Plan: review a project with slugs, description. Reviewers: amckinley Reviewed By: amckinley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D17985
This commit is contained in:
parent
684ce701fb
commit
c4392ba067
3 changed files with 15 additions and 2 deletions
|
@ -166,4 +166,12 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
|||
->buildResponse();
|
||||
}
|
||||
|
||||
public function renderHashtags(array $tags) {
|
||||
$result = array();
|
||||
foreach ($tags as $key => $tag) {
|
||||
$result[] = '#'.$tag;
|
||||
}
|
||||
return implode(', ', $result);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -138,6 +138,12 @@ final class PhabricatorProjectManageController
|
|||
pht('Looks Like'),
|
||||
$viewer->renderHandle($project->getPHID())->setAsTag(true));
|
||||
|
||||
$slugs = $project->getSlugs();
|
||||
$tags = mpull($slugs, 'getSlug');
|
||||
|
||||
$view->addProperty(
|
||||
pht('Hashtags'),
|
||||
$this->renderHashtags($tags));
|
||||
|
||||
$field_list = PhabricatorCustomField::getObjectFields(
|
||||
$project,
|
||||
|
@ -147,5 +153,4 @@ final class PhabricatorProjectManageController
|
|||
return $view;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ final class PhabricatorProjectProfileController
|
|||
}
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Properties'));
|
||||
->setHeader(pht('Details'));
|
||||
|
||||
$view = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
|
|
Loading…
Reference in a new issue