mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Remove extra links in ProjectListItems
Summary: With the new magic controller switcher, these links are needed. Test Plan: Look at list of Projects Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11510
This commit is contained in:
parent
c3913f5995
commit
b34f6e2fb0
1 changed files with 1 additions and 34 deletions
|
@ -219,36 +219,6 @@ final class PhabricatorProjectSearchEngine
|
|||
|
||||
foreach ($projects as $key => $project) {
|
||||
$id = $project->getID();
|
||||
$profile_uri = $this->getApplicationURI("profile/{$id}/");
|
||||
$workboards_uri = $this->getApplicationURI("board/{$id}/");
|
||||
$members_uri = $this->getApplicationURI("members/{$id}/");
|
||||
$profile_url = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $profile_uri,
|
||||
),
|
||||
pht('Profile'));
|
||||
$workboards_url = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $workboards_uri,
|
||||
),
|
||||
pht('Workboard'));
|
||||
|
||||
$members_class = null;
|
||||
$members_sigil = null;
|
||||
if (!isset($can_edit_projects[$key])) {
|
||||
$members_class = 'disabled';
|
||||
$members_sigil = 'workflow';
|
||||
}
|
||||
$members_url = javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $members_uri,
|
||||
'class' => $members_class,
|
||||
'sigil' => $members_sigil,
|
||||
),
|
||||
pht('Members'));
|
||||
|
||||
$tag_list = id(new PHUIHandleTagListView())
|
||||
->setSlim(true)
|
||||
|
@ -258,10 +228,7 @@ final class PhabricatorProjectSearchEngine
|
|||
->setHeader($project->getName())
|
||||
->setHref($this->getApplicationURI("view/{$id}/"))
|
||||
->setImageURI($project->getProfileImageURI())
|
||||
->addAttribute($tag_list)
|
||||
->addAttribute($profile_url)
|
||||
->addAttribute($workboards_url)
|
||||
->addAttribute($members_url);
|
||||
->addAttribute($tag_list);
|
||||
|
||||
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
|
||||
$item->addIcon('delete-grey', pht('Archived'));
|
||||
|
|
Loading…
Reference in a new issue