mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
Show project hashtags prominently on project pages
Summary: Currently, it's unreasonably difficult for users to figure out some project hashtags because the rules aren't always intuitive. Test Plan: {F174508} Reviewers: chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9830
This commit is contained in:
parent
8a39ee067b
commit
a7c1f872a0
1 changed files with 11 additions and 1 deletions
|
@ -25,7 +25,8 @@ final class PhabricatorProjectProfileController
|
||||||
->setViewer($user)
|
->setViewer($user)
|
||||||
->needMembers(true)
|
->needMembers(true)
|
||||||
->needWatchers(true)
|
->needWatchers(true)
|
||||||
->needImages(true);
|
->needImages(true)
|
||||||
|
->needSlugs(true);
|
||||||
if ($this->slug) {
|
if ($this->slug) {
|
||||||
$query->withSlugs(array($this->slug));
|
$query->withSlugs(array($this->slug));
|
||||||
} else {
|
} else {
|
||||||
|
@ -280,6 +281,15 @@ final class PhabricatorProjectProfileController
|
||||||
->setObject($project)
|
->setObject($project)
|
||||||
->setActionList($actions);
|
->setActionList($actions);
|
||||||
|
|
||||||
|
$hashtags = array();
|
||||||
|
foreach ($project->getSlugs() as $slug) {
|
||||||
|
$hashtags[] = id(new PHUITagView())
|
||||||
|
->setType(PHUITagView::TYPE_OBJECT)
|
||||||
|
->setName('#'.$slug->getSlug());
|
||||||
|
}
|
||||||
|
|
||||||
|
$view->addProperty(pht('Hashtags'), phutil_implode_html(' ', $hashtags));
|
||||||
|
|
||||||
$view->addProperty(
|
$view->addProperty(
|
||||||
pht('Members'),
|
pht('Members'),
|
||||||
$project->getMemberPHIDs()
|
$project->getMemberPHIDs()
|
||||||
|
|
Loading…
Reference in a new issue