From b4424ec53a92f936223d633634285c80896d2b52 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 9 Sep 2013 15:13:39 -0700 Subject: [PATCH] Update look of Diviner docs index --- src/__celerity_resource_map__.php | 88 +++++++++---------- .../controller/DivinerLegacyController.php | 12 ++- .../css/phui/phui-object-item-list-view.css | 6 ++ 3 files changed, 60 insertions(+), 46 deletions(-) diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 110478613d..4b1a84a044 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -3801,7 +3801,7 @@ celerity_register_resource_map(array( ), 'phui-object-item-list-view-css' => array( - 'uri' => '/res/3200de88/rsrc/css/phui/phui-object-item-list-view.css', + 'uri' => '/res/71f7f081/rsrc/css/phui/phui-object-item-list-view.css', 'type' => 'css', 'requires' => array( @@ -4171,7 +4171,7 @@ celerity_register_resource_map(array( ), array( 'packages' => array( - '1ae76a7e' => + 'f3475e6e' => array( 'name' => 'core.pkg.css', 'symbols' => @@ -4218,7 +4218,7 @@ celerity_register_resource_map(array( 39 => 'phabricator-property-list-view-css', 40 => 'phabricator-tag-view-css', ), - 'uri' => '/res/pkg/1ae76a7e/core.pkg.css', + 'uri' => '/res/pkg/f3475e6e/core.pkg.css', 'type' => 'css', ), '8977e356' => @@ -4409,15 +4409,15 @@ celerity_register_resource_map(array( ), 'reverse' => array( - 'aphront-dialog-view-css' => '1ae76a7e', - 'aphront-error-view-css' => '1ae76a7e', - 'aphront-list-filter-view-css' => '1ae76a7e', - 'aphront-pager-view-css' => '1ae76a7e', - 'aphront-panel-view-css' => '1ae76a7e', - 'aphront-table-view-css' => '1ae76a7e', - 'aphront-tokenizer-control-css' => '1ae76a7e', - 'aphront-tooltip-css' => '1ae76a7e', - 'aphront-typeahead-control-css' => '1ae76a7e', + 'aphront-dialog-view-css' => 'f3475e6e', + 'aphront-error-view-css' => 'f3475e6e', + 'aphront-list-filter-view-css' => 'f3475e6e', + 'aphront-pager-view-css' => 'f3475e6e', + 'aphront-panel-view-css' => 'f3475e6e', + 'aphront-table-view-css' => 'f3475e6e', + 'aphront-tokenizer-control-css' => 'f3475e6e', + 'aphront-tooltip-css' => 'f3475e6e', + 'aphront-typeahead-control-css' => 'f3475e6e', 'differential-changeset-view-css' => '44bfe40c', 'differential-core-view-css' => '44bfe40c', 'differential-inline-comment-editor' => 'd07a3bc2', @@ -4431,7 +4431,7 @@ celerity_register_resource_map(array( 'differential-table-of-contents-css' => '44bfe40c', 'diffusion-commit-view-css' => 'c8ce2d88', 'diffusion-icons-css' => 'c8ce2d88', - 'global-drag-and-drop-css' => '1ae76a7e', + 'global-drag-and-drop-css' => 'f3475e6e', 'inline-comment-summary-css' => '44bfe40c', 'javelin-aphlict' => '8977e356', 'javelin-behavior' => '2dbbb7d1', @@ -4504,55 +4504,55 @@ celerity_register_resource_map(array( 'javelin-util' => '2dbbb7d1', 'javelin-vector' => '2dbbb7d1', 'javelin-workflow' => '2dbbb7d1', - 'lightbox-attachment-css' => '1ae76a7e', + 'lightbox-attachment-css' => 'f3475e6e', 'maniphest-task-summary-css' => '0a9e494f', 'maniphest-transaction-detail-css' => '0a9e494f', - 'phabricator-action-list-view-css' => '1ae76a7e', - 'phabricator-application-launch-view-css' => '1ae76a7e', + 'phabricator-action-list-view-css' => 'f3475e6e', + 'phabricator-application-launch-view-css' => 'f3475e6e', 'phabricator-busy' => '8977e356', 'phabricator-content-source-view-css' => '44bfe40c', - 'phabricator-core-css' => '1ae76a7e', - 'phabricator-crumbs-view-css' => '1ae76a7e', + 'phabricator-core-css' => 'f3475e6e', + 'phabricator-crumbs-view-css' => 'f3475e6e', 'phabricator-drag-and-drop-file-upload' => 'd07a3bc2', 'phabricator-dropdown-menu' => '8977e356', 'phabricator-file-upload' => '8977e356', - 'phabricator-filetree-view-css' => '1ae76a7e', - 'phabricator-flag-css' => '1ae76a7e', - 'phabricator-header-view-css' => '1ae76a7e', + 'phabricator-filetree-view-css' => 'f3475e6e', + 'phabricator-flag-css' => 'f3475e6e', + 'phabricator-header-view-css' => 'f3475e6e', 'phabricator-hovercard' => '8977e356', - 'phabricator-jump-nav' => '1ae76a7e', + 'phabricator-jump-nav' => 'f3475e6e', 'phabricator-keyboard-shortcut' => '8977e356', 'phabricator-keyboard-shortcut-manager' => '8977e356', - 'phabricator-main-menu-view' => '1ae76a7e', + 'phabricator-main-menu-view' => 'f3475e6e', 'phabricator-menu-item' => '8977e356', - 'phabricator-nav-view-css' => '1ae76a7e', + 'phabricator-nav-view-css' => 'f3475e6e', 'phabricator-notification' => '8977e356', - 'phabricator-notification-css' => '1ae76a7e', - 'phabricator-notification-menu-css' => '1ae76a7e', + 'phabricator-notification-css' => 'f3475e6e', + 'phabricator-notification-menu-css' => 'f3475e6e', 'phabricator-object-selector-css' => '44bfe40c', 'phabricator-phtize' => '8977e356', 'phabricator-prefab' => '8977e356', 'phabricator-project-tag-css' => '0a9e494f', - 'phabricator-property-list-view-css' => '1ae76a7e', - 'phabricator-remarkup-css' => '1ae76a7e', + 'phabricator-property-list-view-css' => 'f3475e6e', + 'phabricator-remarkup-css' => 'f3475e6e', 'phabricator-shaped-request' => 'd07a3bc2', - 'phabricator-side-menu-view-css' => '1ae76a7e', - 'phabricator-standard-page-view' => '1ae76a7e', - 'phabricator-tag-view-css' => '1ae76a7e', + 'phabricator-side-menu-view-css' => 'f3475e6e', + 'phabricator-standard-page-view' => 'f3475e6e', + 'phabricator-tag-view-css' => 'f3475e6e', 'phabricator-textareautils' => '8977e356', 'phabricator-tooltip' => '8977e356', - 'phabricator-transaction-view-css' => '1ae76a7e', - 'phabricator-zindex-css' => '1ae76a7e', - 'phui-button-css' => '1ae76a7e', - 'phui-form-css' => '1ae76a7e', - 'phui-form-view-css' => '1ae76a7e', - 'phui-icon-view-css' => '1ae76a7e', - 'phui-object-item-list-view-css' => '1ae76a7e', - 'phui-spacing-css' => '1ae76a7e', - 'sprite-apps-large-css' => '1ae76a7e', - 'sprite-gradient-css' => '1ae76a7e', - 'sprite-icons-css' => '1ae76a7e', - 'sprite-menu-css' => '1ae76a7e', - 'syntax-highlighting-css' => '1ae76a7e', + 'phabricator-transaction-view-css' => 'f3475e6e', + 'phabricator-zindex-css' => 'f3475e6e', + 'phui-button-css' => 'f3475e6e', + 'phui-form-css' => 'f3475e6e', + 'phui-form-view-css' => 'f3475e6e', + 'phui-icon-view-css' => 'f3475e6e', + 'phui-object-item-list-view-css' => 'f3475e6e', + 'phui-spacing-css' => 'f3475e6e', + 'sprite-apps-large-css' => 'f3475e6e', + 'sprite-gradient-css' => 'f3475e6e', + 'sprite-icons-css' => 'f3475e6e', + 'sprite-menu-css' => 'f3475e6e', + 'syntax-highlighting-css' => 'f3475e6e', ), )); diff --git a/src/applications/diviner/controller/DivinerLegacyController.php b/src/applications/diviner/controller/DivinerLegacyController.php index fc23786385..e5b7f32185 100644 --- a/src/applications/diviner/controller/DivinerLegacyController.php +++ b/src/applications/diviner/controller/DivinerLegacyController.php @@ -30,7 +30,8 @@ final class DivinerLegacyController extends DivinerController { $viewer = $request->getUser(); $list = id(new PHUIObjectItemListView()) - ->setUser($viewer); + ->setUser($viewer) + ->setPlain(true); foreach ($links as $href => $link) { $item = id(new PHUIObjectItemView()) @@ -46,10 +47,17 @@ final class DivinerLegacyController extends DivinerController { id(new PhabricatorCrumbView()) ->setName(pht('Documentation'))); + $header = id(new PhabricatorHeaderView()) + ->setHeader(pht('Documentation')); + + $document = new PHUIDocumentView(); + $document->setHeader($header); + $document->appendChild($list); + return $this->buildApplicationPage( array( $crumbs, - $list, + $document, ), array( 'title' => pht('Documentation'), diff --git a/webroot/rsrc/css/phui/phui-object-item-list-view.css b/webroot/rsrc/css/phui/phui-object-item-list-view.css index 0003768e4b..ee390b4afc 100644 --- a/webroot/rsrc/css/phui/phui-object-item-list-view.css +++ b/webroot/rsrc/css/phui/phui-object-item-list-view.css @@ -546,3 +546,9 @@ border: none; } +.phui-object-list-plain .phui-object-item-attributes, +.phui-object-list-plain .phui-object-item-name { + padding-left: 0; + padding-top: 0; +} +