Style tweaks for Conduit API console

Summary:
  - Use pretty JSON formatter for human-readable Conduit output
  - Fix some whitespace issues with format/layout.

Test Plan:
  - Looked at conduit console.
  - Looked at human-readable output of several calls.

Reviewed By: codeblock
Reviewers: codeblock, jungejason, tuomaspelkonen, aran
CC: aran, codeblock
Differential Revision: 740
This commit is contained in:
epriestley
2011-07-28 21:32:11 -07:00
parent 879431fb50
commit ab0f09d115
3 changed files with 20 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ class PhabricatorConduitConsoleController
$panel = new AphrontPanelView();
$panel->setHeader('Conduit API: '.phutil_escape_html($this->method));
$panel->appendChild($form);
$panel->setWidth(AphrontPanelView::WIDTH_WIDE);
$panel->setWidth(AphrontPanelView::WIDTH_FULL);
$view = new AphrontSideNavView();
foreach ($this->buildNavItems() as $item) {
@@ -154,9 +154,7 @@ class PhabricatorConduitConsoleController
'class' => $selected ? 'aphront-side-nav-selected' : null,
'href' => '/conduit/method/'.$method_name,
),
'<span style="padding-left: 1em;">'.
phutil_escape_html($method_name).
'</span>');
phutil_escape_html($method_name));
}
$items[] = '<hr />';
}