Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14052350
D15373.id37070.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
D15373.id37070.diff
View Options
diff --git a/src/applications/herald/controller/HeraldRuleViewController.php b/src/applications/herald/controller/HeraldRuleViewController.php
--- a/src/applications/herald/controller/HeraldRuleViewController.php
+++ b/src/applications/herald/controller/HeraldRuleViewController.php
@@ -33,12 +33,14 @@
}
$actions = $this->buildActionView($rule);
- $properties = $this->buildPropertyView($rule, $actions);
+ $properties = $this->buildPropertyView($rule);
+ $details = $this->buildDetailsView($rule);
$id = $rule->getID();
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb("H{$id}");
+ $crumbs->setBorder(true);
$object_box = id(new PHUIObjectBoxView())
->setHeader($header)
@@ -51,13 +53,21 @@
$title = $rule->getName();
+ $view = id(new PHUITwoColumnView())
+ ->setHeader($header)
+ ->setMainColumn(array(
+ $details,
+ $timeline,
+ ))
+ ->setPropertyList($properties)
+ ->setActionList($actions);
+
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild(
array(
- $object_box,
- $timeline,
+ $view,
));
}
@@ -105,15 +115,24 @@
}
private function buildPropertyView(
- HeraldRule $rule,
- PhabricatorActionListView $actions) {
+ HeraldRule $rule) {
$viewer = $this->getRequest()->getUser();
-
$view = id(new PHUIPropertyListView())
->setUser($viewer)
- ->setObject($rule)
- ->setActionList($actions);
+ ->setObject($rule);
+
+ $view->invokeWillRenderEvent();
+
+ return $view;
+ }
+
+ private function buildDetailsView(
+ HeraldRule $rule) {
+
+ $viewer = $this->getRequest()->getUser();
+ $view = id(new PHUIPropertyListView())
+ ->setUser($viewer);
$view->addProperty(
pht('Rule Type'),
@@ -139,8 +158,6 @@
$viewer->renderHandle($rule->getTriggerObjectPHID()));
}
- $view->invokeWillRenderEvent();
-
$view->addSectionHeader(
pht('Rule Description'),
PHUIPropertyListView::ICON_SUMMARY);
@@ -150,7 +167,10 @@
$view->addTextContent($rule_text);
}
- return $view;
+ return id(new PHUIObjectBoxView())
+ ->setHeaderText(pht('DETAILS'))
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
+ ->appendChild($view);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 8:20 AM (14 h, 25 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718998
Default Alt Text
D15373.id37070.diff (2 KB)
Attached To
Mode
D15373: Update Herald for PHUITwoColumnView
Attached
Detach File
Event Timeline
Log In to Comment