Page MenuHomePhabricator

D9397.id22411.diff
No OneTemporary

D9397.id22411.diff

diff --git a/src/applications/maniphest/controller/ManiphestReportController.php b/src/applications/maniphest/controller/ManiphestReportController.php
--- a/src/applications/maniphest/controller/ManiphestReportController.php
+++ b/src/applications/maniphest/controller/ManiphestReportController.php
@@ -258,9 +258,17 @@
$caption = null;
}
- $panel = new AphrontPanelView();
- $panel->setHeader($header);
- $panel->setCaption($caption);
+ if ($caption) {
+ $caption = id(new AphrontErrorView())
+ ->appendChild($caption)
+ ->setSeverity(AphrontErrorView::SEVERITY_NOTICE);
+ }
+
+ $panel = new PHUIObjectBoxView();
+ $panel->setHeaderText($header);
+ if ($caption) {
+ $panel->setErrorView($caption);
+ }
$panel->appendChild($table);
$tokens = array();
@@ -275,8 +283,9 @@
'div',
array(
'id' => $id,
- 'style' => 'border: 1px solid #6f6f6f; '.
- 'margin: 1em 2em; '.
+ 'style' => 'border: 1px solid #BFCFDA; '.
+ 'background-color: #fff; '.
+ 'margin: 8px 16px; '.
'height: 400px; ',
),
'');
@@ -628,8 +637,8 @@
'closed',
));
- $panel = new AphrontPanelView();
- $panel->setHeader($header);
+ $panel = new PHUIObjectBoxView();
+ $panel->setHeaderText($header);
$panel->appendChild($table);
$tokens = array();

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 4:25 AM (4 w, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7414192
Default Alt Text
D9397.id22411.diff (1 KB)

Event Timeline