mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00: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:
parent
423180430e
commit
0ceb30af86
5 changed files with 15 additions and 12 deletions
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue