Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4961431
Adding + button to workboard columns
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
JohannesMP
May 17 2017, 12:40 AM
2017-05-17 00:40:52 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
Adding + button to workboard columns
View Options
// File is: ./src/applications/project/controller/PhabricatorProjectBoardViewController.php
// line above is: $panel->setHeaderTag($count_tag);
// Doing what PhabricatorProjectBoardViewController::getCreateURI() used to do before 6f7bb8c removed it
$edit_config = id(new ManiphestEditEngine())
->setViewer($this->getViewer())
->loadDefaultEditConfiguration(new ManiphestTask());
if ($edit_config) {
$create_uri = "/maniphest/task/edit/form/{$edit_config->getIdentifier()}/";
} else {
$create_uri = "/maniphest/task/edit/";
}
if ($column->getProxyPHID()) {
$default_phid = $column->getProxyPHID();
} else {
$default_phid = $column->getProjectPHID();
}
$panel->addHeaderAction(id(new PHUIIconView())
->setIcon('fa-plus')
->setHref($create_uri)
->addSigil('column-add-task')
->setMetadata(
array(
'createURI' => $create_uri,
'columnPHID' => $column->getPHID(),
'boardPHID' => $project->getPHID(),
'projectPHID' => $default_phid,
))
);
// line below is: $cards = id(new PHUIObjectItemListView())
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
655495
Default Alt Text
Adding + button to workboard columns (1 KB)
Attached To
Mode
P2015 Adding + button to workboard columns
Attached
Detach File
Event Timeline
Log In to Comment