Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15413261
D8013.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8013.diff
View Options
Index: src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
===================================================================
--- src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
+++ src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
@@ -116,15 +116,10 @@
'n',
));
- $completed_header = id(new PHUIHeaderView())
- ->setHeader(pht('Recently Completed Tasks (Last 15m)'));
-
- $completed_panel = new AphrontPanelView();
+ $completed_panel = new PHUIObjectBoxView();
+ $completed_panel->setHeaderText(
+ pht('Recently Completed Tasks (Last 15m)'));
$completed_panel->appendChild($completed_table);
- $completed_panel->setNoBackground();
-
- $daemon_header = id(new PHUIHeaderView())
- ->setHeader(pht('Active Daemons'));
$daemon_table = new PhabricatorDaemonLogListView();
$daemon_table->setUser($user);
@@ -151,6 +146,10 @@
);
}
+ $daemon_panel = new PHUIObjectBoxView();
+ $daemon_panel->setHeaderText(pht('Active Daemons'));
+ $daemon_panel->appendChild($daemon_table);
+
$leased_table = new AphrontTableView($rows);
$leased_table->setHeaders(
array(
@@ -172,10 +171,9 @@
));
$leased_table->setNoDataString(pht('No tasks are leased by workers.'));
- $leased_panel = new AphrontPanelView();
- $leased_panel->setHeader('Leased Tasks');
+ $leased_panel = new PHUIObjectBoxView();
+ $leased_panel->setHeaderText(pht('Leased Tasks'));
$leased_panel->appendChild($leased_table);
- $leased_panel->setNoBackground();
$task_table = new PhabricatorWorkerActiveTask();
$queued = queryfx_all(
@@ -205,10 +203,9 @@
));
$queued_table->setNoDataString(pht('Task queue is empty.'));
- $queued_panel = new AphrontPanelView();
- $queued_panel->setHeader(pht('Queued Tasks'));
+ $queued_panel = new PHUIObjectBoxView();
+ $queued_panel->setHeaderText(pht('Queued Tasks'));
$queued_panel->appendChild($queued_table);
- $queued_panel->setNoBackground();
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Console'));
@@ -218,10 +215,8 @@
$nav->appendChild(
array(
$crumbs,
- $completed_header,
$completed_panel,
- $daemon_header,
- $daemon_table,
+ $daemon_panel,
$queued_panel,
$leased_panel,
));
Index: src/applications/daemon/view/PhabricatorDaemonLogListView.php
===================================================================
--- src/applications/daemon/view/PhabricatorDaemonLogListView.php
+++ src/applications/daemon/view/PhabricatorDaemonLogListView.php
@@ -17,7 +17,9 @@
throw new Exception("Call setUser() before rendering!");
}
- $list = id(new PHUIObjectItemListView());
+ $list = id(new PHUIObjectItemListView())
+ ->setCards(true)
+ ->setFlush(true);
foreach ($this->daemonLogs as $log) {
$id = $log->getID();
$epoch = $log->getDateCreated();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 5:38 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704101
Default Alt Text
D8013.diff (2 KB)
Attached To
Mode
D8013: Use PHUIObjectBoxView on Daemons
Attached
Detach File
Event Timeline
Log In to Comment