Page MenuHomePhorge

GanttController.php
No OneTemporary

GanttController.php

<?php
final class GanttController extends PhabricatorProjectController
{
public function handleRequest(AphrontRequest $request)
{
$response = $this->loadProject();
if ($response) {
return $response;
}
require_celerity_resource('frappe-gantt-css', 'gantt-resources');
require_celerity_resource('frappe-gantt-js', 'gantt-resources');
require_celerity_resource('frappe-gantt-js-integration', 'gantt-resources');
require_celerity_resource('frappe-gantt-css-integration', 'gantt-resources');
$project = $this->getProject();
$chart_view = phutil_tag(
'div',
array(
'class' => 'frappe-gantt-integration chart-hardpoint',
), hsprintf('<svg id="gantt"></svg>'));
$panel = id(new PHUIBoxView)
->appendChild($chart_view)
->setBorder(true);
$view = id(new PHUITwoColumnView())
->setFooter(array(
$panel,
));
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Gantt'));
$crumbs->setBorder(true);
$nav = $this->newNavigation(
$project,
'project.gantt');
return $this->newPage()
->setTitle('Gantt')
->setCrumbs($crumbs)
->setNavigation($nav)
->appendChild($view);
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Jan 20, 09:19 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1133338
Default Alt Text
GanttController.php (1 KB)

Event Timeline