Page MenuHomePhabricator

D16254.diff
No OneTemporary

D16254.diff

diff --git a/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php b/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
--- a/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
+++ b/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
@@ -15,9 +15,13 @@
$task = reset($tasks);
}
+ $header = new PHUIHeaderView();
+
if (!$task) {
$title = pht('Task Does Not Exist');
+ $header->setHeader(pht('Task %d Missing', $id));
+
$error_view = new PHUIInfoView();
$error_view->setTitle(pht('No Such Task'));
$error_view->appendChild(phutil_tag(
@@ -30,11 +34,11 @@
} else {
$title = pht('Task %d', $task->getID());
- $header = id(new PHUIHeaderView())
- ->setHeader(pht('Task %d: %s',
+ $header->setHeader(
+ pht(
+ 'Task %d: %s',
$task->getID(),
- $task->getTaskClass()))
- ->setHeaderIcon('fa-sort');
+ $task->getTaskClass()));
$properties = $this->buildPropertyListView($task);
@@ -59,6 +63,8 @@
);
}
+ $header->setHeaderIcon('fa-sort');
+
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb($title);
$crumbs->setBorder(true);

File Metadata

Mime Type
text/plain
Expires
Mar 12 2025, 3:27 AM (6 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7570788
Default Alt Text
D16254.diff (1 KB)

Event Timeline