1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Moderize Daemons a little

Summary: Swaps out to modern UI components, update for mobile, fix some phts.

Test Plan: Test each Daemon page on desktop and mobile. Verify modern layout.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7427

Differential Revision: https://secure.phabricator.com/D11958
This commit is contained in:
Chad Little 2015-03-03 11:11:26 -08:00
parent 423180430e
commit 0ceb30af86
5 changed files with 15 additions and 12 deletions

View file

@ -253,11 +253,11 @@ final class PhabricatorDaemonConsoleController
->setNoDataString(pht('There are no upcoming event triggers.'))
->setHeaders(
array(
'ID',
'Clock',
'Action',
'Last',
'Next',
pht('ID'),
pht('Clock'),
pht('Action'),
pht('Last'),
pht('Next'),
))
->setColumnClasses(
array(

View file

@ -23,9 +23,9 @@ final class PhabricatorDaemonLogEventViewController
->setCombinedLog(true)
->setShowFullMessage(true);
$log_panel = new AphrontPanelView();
$log_panel = new PHUIObjectBoxView();
$log_panel->setHeaderText(pht('Combined Log'));
$log_panel->appendChild($event_view);
$log_panel->setNoBackground();
$daemon_id = $event->getLogID();
@ -43,7 +43,6 @@ final class PhabricatorDaemonLogEventViewController
),
array(
'title' => pht('Combined Daemon Log'),
'device' => false,
));
}

View file

@ -19,13 +19,17 @@ final class PhabricatorDaemonLogListController
$daemon_table->setUser($request->getUser());
$daemon_table->setDaemonLogs($logs);
$box = id(new PHUIObjectBoxView())
->setHeaderText(pht('All Daemons'))
->appendChild($daemon_table);
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('All Daemons'));
$nav = $this->buildSideNavView();
$nav->selectFilter('log');
$nav->setCrumbs($crumbs);
$nav->appendChild($daemon_table);
$nav->appendChild($box);
$nav->appendChild($pager);
return $this->buildApplicationPage(

View file

@ -79,8 +79,8 @@ final class PhabricatorDaemonLogViewController
->setUser($user)
->setEvents($events);
$event_panel = new AphrontPanelView();
$event_panel->setNoBackground();
$event_panel = new PHUIObjectBoxView();
$event_panel->setHeaderText(pht('Events'));
$event_panel->appendChild($event_view);
$object_box = id(new PHUIObjectBoxView())
@ -95,7 +95,6 @@ final class PhabricatorDaemonLogViewController
),
array(
'title' => pht('Daemon Log'),
'device' => false,
));
}

View file

@ -19,6 +19,7 @@ final class PhabricatorDaemonLogListView extends AphrontView {
$env_hash = PhabricatorEnv::calculateEnvironmentHash();
$list = new PHUIObjectItemListView();
$list->setFlush(true);
foreach ($this->daemonLogs as $log) {
$id = $log->getID();
$epoch = $log->getDateCreated();