Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1525194
PhabricatorProjectWorkboardProfilePanel.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorProjectWorkboardProfilePanel.php
View Options
<?php
final
class
PhabricatorProjectWorkboardProfilePanel
extends
PhabricatorProfilePanel
{
const
PANELKEY
=
'project.workboard'
;
protected
function
newNavigationMenuItems
(
PhabricatorProfilePanelConfiguration
$config
)
{
$viewer
=
$this
->
getViewer
();
// Workboards are only available if Maniphest is installed.
$class
=
'PhabricatorManiphestApplication'
;
if
(!
PhabricatorApplication
::
isClassInstalledForViewer
(
$class
,
$viewer
))
{
return
array
();
}
$project
=
$config
->
getProfileObject
();
$columns
=
id
(
new
PhabricatorProjectColumnQuery
())
->
setViewer
(
$viewer
)
->
withProjectPHIDs
(
array
(
$project
->
getPHID
()))
->
execute
();
if
(
$columns
)
{
$icon
=
'fa-columns'
;
}
else
{
$icon
=
'fa-columns grey'
;
}
$id
=
$project
->
getID
();
$href
=
"/project/board/{$id}/"
;
$name
=
pht
(
'Workboard'
);
$item
=
id
(
new
PHUIListItemView
())
->
setRenderNameAsTooltip
(
true
)
->
setType
(
PHUIListItemView
::
TYPE_ICON_NAV
)
->
setHref
(
$href
)
->
setName
(
$name
)
->
setIcon
(
$icon
);
return
array
(
$item
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 14, 11:27 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
354320
Default Alt Text
PhabricatorProjectWorkboardProfilePanel.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment