Make all of Drydock work on Mobile

Summary: This is probably not the most useful app to have work on mobile, but get the log view to do something fairly sensible.

Test Plan: Looked at all Drydock views in mobile.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D4224
This commit is contained in:
epriestley
2012-12-17 15:16:44 -08:00
parent cd46fd4afe
commit edd5c208a6
5 changed files with 213 additions and 92 deletions

View File

@@ -27,15 +27,33 @@ final class DrydockLogController extends DrydockController {
$logs = $query->executeWithOffsetPager($pager);
$title = pht('Logs');
$header = id(new PhabricatorHeaderView())
->setHeader($title);
$table = $this->buildLogTableView($logs);
$table->appendChild($pager);
$nav->appendChild($table);
$nav->appendChild(
array(
$header,
$table,
$pager,
));
return $this->buildStandardPageResponse(
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addCrumb(
id(new PhabricatorCrumbView())
->setName($title)
->setHref($this->getApplicationURI('/logs/')));
$nav->setCrumbs($crumbs);
return $this->buildApplicationPage(
$nav,
array(
'title' => 'Logs',
'title' => $title,
'device' => true,
));
}