1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +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.')) ->setNoDataString(pht('There are no upcoming event triggers.'))
->setHeaders( ->setHeaders(
array( array(
'ID', pht('ID'),
'Clock', pht('Clock'),
'Action', pht('Action'),
'Last', pht('Last'),
'Next', pht('Next'),
)) ))
->setColumnClasses( ->setColumnClasses(
array( array(

View file

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

View file

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

View file

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

View file

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