Move PHUIErrorView to PHUIInfoView
Summary: Since this element isn't strictly about errors, re-label as info view instead. Test Plan: Grepped for all callsites, tested UIExamples and a few other random pages. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11867
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
return array(
 | 
					return array(
 | 
				
			||||||
  'names' => array(
 | 
					  'names' => array(
 | 
				
			||||||
    'core.pkg.css' => '382f51c7',
 | 
					    'core.pkg.css' => '2e669d0e',
 | 
				
			||||||
    'core.pkg.js' => '23d653bb',
 | 
					    'core.pkg.js' => '23d653bb',
 | 
				
			||||||
    'darkconsole.pkg.js' => '8ab24e01',
 | 
					    'darkconsole.pkg.js' => '8ab24e01',
 | 
				
			||||||
    'differential.pkg.css' => '4c3242f8',
 | 
					    'differential.pkg.css' => '4c3242f8',
 | 
				
			||||||
@@ -53,7 +53,7 @@ return array(
 | 
				
			|||||||
    'rsrc/css/application/conpherence/widget-pane.css' => '3d575438',
 | 
					    'rsrc/css/application/conpherence/widget-pane.css' => '3d575438',
 | 
				
			||||||
    'rsrc/css/application/contentsource/content-source-view.css' => '4b8b05d4',
 | 
					    'rsrc/css/application/contentsource/content-source-view.css' => '4b8b05d4',
 | 
				
			||||||
    'rsrc/css/application/countdown/timer.css' => '86b7b0a0',
 | 
					    'rsrc/css/application/countdown/timer.css' => '86b7b0a0',
 | 
				
			||||||
    'rsrc/css/application/dashboard/dashboard.css' => 'c0062064',
 | 
					    'rsrc/css/application/dashboard/dashboard.css' => '17937d22',
 | 
				
			||||||
    'rsrc/css/application/diff/inline-comment-summary.css' => 'eb5f8e8c',
 | 
					    'rsrc/css/application/diff/inline-comment-summary.css' => 'eb5f8e8c',
 | 
				
			||||||
    'rsrc/css/application/differential/add-comment.css' => 'c478bcaa',
 | 
					    'rsrc/css/application/differential/add-comment.css' => 'c478bcaa',
 | 
				
			||||||
    'rsrc/css/application/differential/changeset-view.css' => 'a7781046',
 | 
					    'rsrc/css/application/differential/changeset-view.css' => 'a7781046',
 | 
				
			||||||
@@ -80,7 +80,7 @@ return array(
 | 
				
			|||||||
    'rsrc/css/application/owners/owners-path-editor.css' => '2f00933b',
 | 
					    'rsrc/css/application/owners/owners-path-editor.css' => '2f00933b',
 | 
				
			||||||
    'rsrc/css/application/paste/paste.css' => 'eb997ddd',
 | 
					    'rsrc/css/application/paste/paste.css' => 'eb997ddd',
 | 
				
			||||||
    'rsrc/css/application/people/people-profile.css' => '25970776',
 | 
					    'rsrc/css/application/people/people-profile.css' => '25970776',
 | 
				
			||||||
    'rsrc/css/application/phame/phame.css' => 'db5682e3',
 | 
					    'rsrc/css/application/phame/phame.css' => '88bd4705',
 | 
				
			||||||
    'rsrc/css/application/pholio/pholio-edit.css' => '3ad9d1ee',
 | 
					    'rsrc/css/application/pholio/pholio-edit.css' => '3ad9d1ee',
 | 
				
			||||||
    'rsrc/css/application/pholio/pholio-inline-comments.css' => '8e545e49',
 | 
					    'rsrc/css/application/pholio/pholio-inline-comments.css' => '8e545e49',
 | 
				
			||||||
    'rsrc/css/application/pholio/pholio.css' => '95174bdd',
 | 
					    'rsrc/css/application/pholio/pholio.css' => '95174bdd',
 | 
				
			||||||
@@ -95,7 +95,7 @@ return array(
 | 
				
			|||||||
    'rsrc/css/application/ponder/feed.css' => 'e62615b6',
 | 
					    'rsrc/css/application/ponder/feed.css' => 'e62615b6',
 | 
				
			||||||
    'rsrc/css/application/ponder/post.css' => 'ebab8a70',
 | 
					    'rsrc/css/application/ponder/post.css' => 'ebab8a70',
 | 
				
			||||||
    'rsrc/css/application/ponder/vote.css' => '8ed6ed8b',
 | 
					    'rsrc/css/application/ponder/vote.css' => '8ed6ed8b',
 | 
				
			||||||
    'rsrc/css/application/profile/profile-view.css' => 'd8cb982b',
 | 
					    'rsrc/css/application/profile/profile-view.css' => '1a20dcbf',
 | 
				
			||||||
    'rsrc/css/application/projects/project-icon.css' => 'c2ecb7f1',
 | 
					    'rsrc/css/application/projects/project-icon.css' => 'c2ecb7f1',
 | 
				
			||||||
    'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733',
 | 
					    'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733',
 | 
				
			||||||
    'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5',
 | 
					    'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5',
 | 
				
			||||||
@@ -127,8 +127,8 @@ return array(
 | 
				
			|||||||
    'rsrc/css/phui/phui-box.css' => '7b3a2eed',
 | 
					    'rsrc/css/phui/phui-box.css' => '7b3a2eed',
 | 
				
			||||||
    'rsrc/css/phui/phui-button.css' => '21cb97f9',
 | 
					    'rsrc/css/phui/phui-button.css' => '21cb97f9',
 | 
				
			||||||
    'rsrc/css/phui/phui-crumbs-view.css' => '594d719e',
 | 
					    'rsrc/css/phui/phui-crumbs-view.css' => '594d719e',
 | 
				
			||||||
    'rsrc/css/phui/phui-document.css' => '8240b0b1',
 | 
					    'rsrc/css/phui/phui-document.css' => '620b1eec',
 | 
				
			||||||
    'rsrc/css/phui/phui-error-view.css' => '41518665',
 | 
					    'rsrc/css/phui/phui-error-view.css' => 'ffc48131',
 | 
				
			||||||
    'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5',
 | 
					    'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5',
 | 
				
			||||||
    'rsrc/css/phui/phui-fontkit.css' => '4394f216',
 | 
					    'rsrc/css/phui/phui-fontkit.css' => '4394f216',
 | 
				
			||||||
    'rsrc/css/phui/phui-form-view.css' => '8b78a986',
 | 
					    'rsrc/css/phui/phui-form-view.css' => '8b78a986',
 | 
				
			||||||
@@ -138,8 +138,8 @@ return array(
 | 
				
			|||||||
    'rsrc/css/phui/phui-image-mask.css' => '5a8b09c8',
 | 
					    'rsrc/css/phui/phui-image-mask.css' => '5a8b09c8',
 | 
				
			||||||
    'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
 | 
					    'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
 | 
				
			||||||
    'rsrc/css/phui/phui-list.css' => '53deb25c',
 | 
					    'rsrc/css/phui/phui-list.css' => '53deb25c',
 | 
				
			||||||
    'rsrc/css/phui/phui-object-box.css' => 'b8b7fd78',
 | 
					    'rsrc/css/phui/phui-object-box.css' => 'd68ce5dc',
 | 
				
			||||||
    'rsrc/css/phui/phui-object-item-list-view.css' => '12cfa14f',
 | 
					    'rsrc/css/phui/phui-object-item-list-view.css' => '9db65899',
 | 
				
			||||||
    'rsrc/css/phui/phui-pinboard-view.css' => '3dd4a269',
 | 
					    'rsrc/css/phui/phui-pinboard-view.css' => '3dd4a269',
 | 
				
			||||||
    'rsrc/css/phui/phui-property-list-view.css' => '51480060',
 | 
					    'rsrc/css/phui/phui-property-list-view.css' => '51480060',
 | 
				
			||||||
    'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b',
 | 
					    'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b',
 | 
				
			||||||
@@ -719,7 +719,7 @@ return array(
 | 
				
			|||||||
    'phabricator-content-source-view-css' => '4b8b05d4',
 | 
					    'phabricator-content-source-view-css' => '4b8b05d4',
 | 
				
			||||||
    'phabricator-core-css' => 'c8c5ecd2',
 | 
					    'phabricator-core-css' => 'c8c5ecd2',
 | 
				
			||||||
    'phabricator-countdown-css' => '86b7b0a0',
 | 
					    'phabricator-countdown-css' => '86b7b0a0',
 | 
				
			||||||
    'phabricator-dashboard-css' => 'c0062064',
 | 
					    'phabricator-dashboard-css' => '17937d22',
 | 
				
			||||||
    'phabricator-drag-and-drop-file-upload' => '8c49f386',
 | 
					    'phabricator-drag-and-drop-file-upload' => '8c49f386',
 | 
				
			||||||
    'phabricator-draggable-list' => 'a16ec1c6',
 | 
					    'phabricator-draggable-list' => 'a16ec1c6',
 | 
				
			||||||
    'phabricator-fatal-config-template-css' => '8e6c6fcd',
 | 
					    'phabricator-fatal-config-template-css' => '8e6c6fcd',
 | 
				
			||||||
@@ -739,7 +739,7 @@ return array(
 | 
				
			|||||||
    'phabricator-object-selector-css' => '029a133d',
 | 
					    'phabricator-object-selector-css' => '029a133d',
 | 
				
			||||||
    'phabricator-phtize' => 'd254d646',
 | 
					    'phabricator-phtize' => 'd254d646',
 | 
				
			||||||
    'phabricator-prefab' => '72da38cc',
 | 
					    'phabricator-prefab' => '72da38cc',
 | 
				
			||||||
    'phabricator-profile-css' => 'd8cb982b',
 | 
					    'phabricator-profile-css' => '1a20dcbf',
 | 
				
			||||||
    'phabricator-remarkup-css' => '2dbff225',
 | 
					    'phabricator-remarkup-css' => '2dbff225',
 | 
				
			||||||
    'phabricator-search-results-css' => 'f240504c',
 | 
					    'phabricator-search-results-css' => 'f240504c',
 | 
				
			||||||
    'phabricator-shaped-request' => '7cbe244b',
 | 
					    'phabricator-shaped-request' => '7cbe244b',
 | 
				
			||||||
@@ -763,7 +763,7 @@ return array(
 | 
				
			|||||||
    'phabricator-uiexample-reactor-sendclass' => '1def2711',
 | 
					    'phabricator-uiexample-reactor-sendclass' => '1def2711',
 | 
				
			||||||
    'phabricator-uiexample-reactor-sendproperties' => 'b1f0ccee',
 | 
					    'phabricator-uiexample-reactor-sendproperties' => 'b1f0ccee',
 | 
				
			||||||
    'phabricator-zindex-css' => '8239495e',
 | 
					    'phabricator-zindex-css' => '8239495e',
 | 
				
			||||||
    'phame-css' => 'db5682e3',
 | 
					    'phame-css' => '88bd4705',
 | 
				
			||||||
    'pholio-css' => '95174bdd',
 | 
					    'pholio-css' => '95174bdd',
 | 
				
			||||||
    'pholio-edit-css' => '3ad9d1ee',
 | 
					    'pholio-edit-css' => '3ad9d1ee',
 | 
				
			||||||
    'pholio-inline-comments-css' => '8e545e49',
 | 
					    'pholio-inline-comments-css' => '8e545e49',
 | 
				
			||||||
@@ -781,8 +781,7 @@ return array(
 | 
				
			|||||||
    'phui-calendar-list-css' => 'c1d0ca59',
 | 
					    'phui-calendar-list-css' => 'c1d0ca59',
 | 
				
			||||||
    'phui-calendar-month-css' => 'a92e47d2',
 | 
					    'phui-calendar-month-css' => 'a92e47d2',
 | 
				
			||||||
    'phui-crumbs-view-css' => '594d719e',
 | 
					    'phui-crumbs-view-css' => '594d719e',
 | 
				
			||||||
    'phui-document-view-css' => '8240b0b1',
 | 
					    'phui-document-view-css' => '620b1eec',
 | 
				
			||||||
    'phui-error-view-css' => '41518665',
 | 
					 | 
				
			||||||
    'phui-feed-story-css' => 'c9f3a0b5',
 | 
					    'phui-feed-story-css' => 'c9f3a0b5',
 | 
				
			||||||
    'phui-font-icon-base-css' => '3dad2ae3',
 | 
					    'phui-font-icon-base-css' => '3dad2ae3',
 | 
				
			||||||
    'phui-fontkit-css' => '4394f216',
 | 
					    'phui-fontkit-css' => '4394f216',
 | 
				
			||||||
@@ -792,9 +791,10 @@ return array(
 | 
				
			|||||||
    'phui-icon-view-css' => 'd35aa857',
 | 
					    'phui-icon-view-css' => 'd35aa857',
 | 
				
			||||||
    'phui-image-mask-css' => '5a8b09c8',
 | 
					    'phui-image-mask-css' => '5a8b09c8',
 | 
				
			||||||
    'phui-info-panel-css' => '27ea50a1',
 | 
					    'phui-info-panel-css' => '27ea50a1',
 | 
				
			||||||
 | 
					    'phui-info-view-css' => 'ffc48131',
 | 
				
			||||||
    'phui-list-view-css' => '53deb25c',
 | 
					    'phui-list-view-css' => '53deb25c',
 | 
				
			||||||
    'phui-object-box-css' => 'b8b7fd78',
 | 
					    'phui-object-box-css' => 'd68ce5dc',
 | 
				
			||||||
    'phui-object-item-list-view-css' => '12cfa14f',
 | 
					    'phui-object-item-list-view-css' => '9db65899',
 | 
				
			||||||
    'phui-pinboard-view-css' => '3dd4a269',
 | 
					    'phui-pinboard-view-css' => '3dd4a269',
 | 
				
			||||||
    'phui-property-list-view-css' => '51480060',
 | 
					    'phui-property-list-view-css' => '51480060',
 | 
				
			||||||
    'phui-remarkup-preview-css' => '19ad512b',
 | 
					    'phui-remarkup-preview-css' => '19ad512b',
 | 
				
			||||||
@@ -2027,7 +2027,7 @@ return array(
 | 
				
			|||||||
      'phabricator-transaction-view-css',
 | 
					      'phabricator-transaction-view-css',
 | 
				
			||||||
      'aphront-tooltip-css',
 | 
					      'aphront-tooltip-css',
 | 
				
			||||||
      'phabricator-flag-css',
 | 
					      'phabricator-flag-css',
 | 
				
			||||||
      'phui-error-view-css',
 | 
					      'phui-info-view-css',
 | 
				
			||||||
      'sprite-gradient-css',
 | 
					      'sprite-gradient-css',
 | 
				
			||||||
      'sprite-menu-css',
 | 
					      'sprite-menu-css',
 | 
				
			||||||
      'phabricator-main-menu-view',
 | 
					      'phabricator-main-menu-view',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,7 +94,7 @@ return array(
 | 
				
			|||||||
    'phabricator-transaction-view-css',
 | 
					    'phabricator-transaction-view-css',
 | 
				
			||||||
    'aphront-tooltip-css',
 | 
					    'aphront-tooltip-css',
 | 
				
			||||||
    'phabricator-flag-css',
 | 
					    'phabricator-flag-css',
 | 
				
			||||||
    'phui-error-view-css',
 | 
					    'phui-info-view-css',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    'sprite-gradient-css',
 | 
					    'sprite-gradient-css',
 | 
				
			||||||
    'sprite-menu-css',
 | 
					    'sprite-menu-css',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1139,8 +1139,6 @@ phutil_register_library_map(array(
 | 
				
			|||||||
    'PHUICrumbsView' => 'view/phui/PHUICrumbsView.php',
 | 
					    'PHUICrumbsView' => 'view/phui/PHUICrumbsView.php',
 | 
				
			||||||
    'PHUIDocumentExample' => 'applications/uiexample/examples/PHUIDocumentExample.php',
 | 
					    'PHUIDocumentExample' => 'applications/uiexample/examples/PHUIDocumentExample.php',
 | 
				
			||||||
    'PHUIDocumentView' => 'view/phui/PHUIDocumentView.php',
 | 
					    'PHUIDocumentView' => 'view/phui/PHUIDocumentView.php',
 | 
				
			||||||
    'PHUIErrorExample' => 'applications/uiexample/examples/PHUIErrorExample.php',
 | 
					 | 
				
			||||||
    'PHUIErrorView' => 'view/form/PHUIErrorView.php',
 | 
					 | 
				
			||||||
    'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php',
 | 
					    'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php',
 | 
				
			||||||
    'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php',
 | 
					    'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php',
 | 
				
			||||||
    'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php',
 | 
					    'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php',
 | 
				
			||||||
@@ -1155,8 +1153,10 @@ phutil_register_library_map(array(
 | 
				
			|||||||
    'PHUIIconView' => 'view/phui/PHUIIconView.php',
 | 
					    'PHUIIconView' => 'view/phui/PHUIIconView.php',
 | 
				
			||||||
    'PHUIImageMaskExample' => 'applications/uiexample/examples/PHUIImageMaskExample.php',
 | 
					    'PHUIImageMaskExample' => 'applications/uiexample/examples/PHUIImageMaskExample.php',
 | 
				
			||||||
    'PHUIImageMaskView' => 'view/phui/PHUIImageMaskView.php',
 | 
					    'PHUIImageMaskView' => 'view/phui/PHUIImageMaskView.php',
 | 
				
			||||||
 | 
					    'PHUIInfoExample' => 'applications/uiexample/examples/PHUIInfoExample.php',
 | 
				
			||||||
    'PHUIInfoPanelExample' => 'applications/uiexample/examples/PHUIInfoPanelExample.php',
 | 
					    'PHUIInfoPanelExample' => 'applications/uiexample/examples/PHUIInfoPanelExample.php',
 | 
				
			||||||
    'PHUIInfoPanelView' => 'view/phui/PHUIInfoPanelView.php',
 | 
					    'PHUIInfoPanelView' => 'view/phui/PHUIInfoPanelView.php',
 | 
				
			||||||
 | 
					    'PHUIInfoView' => 'view/form/PHUIInfoView.php',
 | 
				
			||||||
    'PHUIListExample' => 'applications/uiexample/examples/PHUIListExample.php',
 | 
					    'PHUIListExample' => 'applications/uiexample/examples/PHUIListExample.php',
 | 
				
			||||||
    'PHUIListItemView' => 'view/phui/PHUIListItemView.php',
 | 
					    'PHUIListItemView' => 'view/phui/PHUIListItemView.php',
 | 
				
			||||||
    'PHUIListView' => 'view/phui/PHUIListView.php',
 | 
					    'PHUIListView' => 'view/phui/PHUIListView.php',
 | 
				
			||||||
@@ -4366,8 +4366,6 @@ phutil_register_library_map(array(
 | 
				
			|||||||
    'PHUICrumbsView' => 'AphrontView',
 | 
					    'PHUICrumbsView' => 'AphrontView',
 | 
				
			||||||
    'PHUIDocumentExample' => 'PhabricatorUIExample',
 | 
					    'PHUIDocumentExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIDocumentView' => 'AphrontTagView',
 | 
					    'PHUIDocumentView' => 'AphrontTagView',
 | 
				
			||||||
    'PHUIErrorExample' => 'PhabricatorUIExample',
 | 
					 | 
				
			||||||
    'PHUIErrorView' => 'AphrontView',
 | 
					 | 
				
			||||||
    'PHUIFeedStoryExample' => 'PhabricatorUIExample',
 | 
					    'PHUIFeedStoryExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIFeedStoryView' => 'AphrontView',
 | 
					    'PHUIFeedStoryView' => 'AphrontView',
 | 
				
			||||||
    'PHUIFormDividerControl' => 'AphrontFormControl',
 | 
					    'PHUIFormDividerControl' => 'AphrontFormControl',
 | 
				
			||||||
@@ -4382,8 +4380,10 @@ phutil_register_library_map(array(
 | 
				
			|||||||
    'PHUIIconView' => 'AphrontTagView',
 | 
					    'PHUIIconView' => 'AphrontTagView',
 | 
				
			||||||
    'PHUIImageMaskExample' => 'PhabricatorUIExample',
 | 
					    'PHUIImageMaskExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIImageMaskView' => 'AphrontTagView',
 | 
					    'PHUIImageMaskView' => 'AphrontTagView',
 | 
				
			||||||
 | 
					    'PHUIInfoExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIInfoPanelExample' => 'PhabricatorUIExample',
 | 
					    'PHUIInfoPanelExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIInfoPanelView' => 'AphrontView',
 | 
					    'PHUIInfoPanelView' => 'AphrontView',
 | 
				
			||||||
 | 
					    'PHUIInfoView' => 'AphrontView',
 | 
				
			||||||
    'PHUIListExample' => 'PhabricatorUIExample',
 | 
					    'PHUIListExample' => 'PhabricatorUIExample',
 | 
				
			||||||
    'PHUIListItemView' => 'AphrontTagView',
 | 
					    'PHUIListItemView' => 'AphrontTagView',
 | 
				
			||||||
    'PHUIListView' => 'AphrontTagView',
 | 
					    'PHUIListView' => 'AphrontTagView',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -205,7 +205,7 @@ class AphrontDefaultApplicationConfiguration
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($ex instanceof AphrontUsageException) {
 | 
					    if ($ex instanceof AphrontUsageException) {
 | 
				
			||||||
      $error = new PHUIErrorView();
 | 
					      $error = new PHUIInfoView();
 | 
				
			||||||
      $error->setTitle($ex->getTitle());
 | 
					      $error->setTitle($ex->getTitle());
 | 
				
			||||||
      $error->appendChild($ex->getMessage());
 | 
					      $error->appendChild($ex->getMessage());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -188,8 +188,8 @@ abstract class AlmanacController
 | 
				
			|||||||
      ),
 | 
					      ),
 | 
				
			||||||
      pht('Learn More'));
 | 
					      pht('Learn More'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $error_view = id(new PHUIErrorView())
 | 
					    $error_view = id(new PHUIInfoView())
 | 
				
			||||||
      ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					      ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
      ->setErrors(
 | 
					      ->setErrors(
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
          array($message, ' ', $doc_link),
 | 
					          array($message, ' ', $doc_link),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@ abstract class PhabricatorAuthController extends PhabricatorController {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  protected function renderErrorPage($title, array $messages) {
 | 
					  protected function renderErrorPage($title, array $messages) {
 | 
				
			||||||
    $view = new PHUIErrorView();
 | 
					    $view = new PHUIInfoView();
 | 
				
			||||||
    $view->setTitle($title);
 | 
					    $view->setTitle($title);
 | 
				
			||||||
    $view->setErrors($messages);
 | 
					    $view->setErrors($messages);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,9 +29,9 @@ final class PhabricatorAuthNeedsMultiFactorController
 | 
				
			|||||||
    $viewer->updateMultiFactorEnrollment();
 | 
					    $viewer->updateMultiFactorEnrollment();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!$viewer->getIsEnrolledInMultiFactor()) {
 | 
					    if (!$viewer->getIsEnrolledInMultiFactor()) {
 | 
				
			||||||
      $help = id(new PHUIErrorView())
 | 
					      $help = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Add Multi-Factor Authentication To Your Account'))
 | 
					        ->setTitle(pht('Add Multi-Factor Authentication To Your Account'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
        ->setErrors(
 | 
					        ->setErrors(
 | 
				
			||||||
          array(
 | 
					          array(
 | 
				
			||||||
            pht(
 | 
					            pht(
 | 
				
			||||||
@@ -53,9 +53,9 @@ final class PhabricatorAuthNeedsMultiFactorController
 | 
				
			|||||||
              'account.'),
 | 
					              'account.'),
 | 
				
			||||||
          ));
 | 
					          ));
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      $help = id(new PHUIErrorView())
 | 
					      $help = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Multi-Factor Authentication Configured'))
 | 
					        ->setTitle(pht('Multi-Factor Authentication Configured'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setErrors(
 | 
					        ->setErrors(
 | 
				
			||||||
          array(
 | 
					          array(
 | 
				
			||||||
            pht(
 | 
					            pht(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -505,8 +505,8 @@ final class PhabricatorAuthRegisterController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $welcome_view = null;
 | 
					    $welcome_view = null;
 | 
				
			||||||
    if ($is_setup) {
 | 
					    if ($is_setup) {
 | 
				
			||||||
      $welcome_view = id(new PHUIErrorView())
 | 
					      $welcome_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setTitle(pht('Welcome to Phabricator'))
 | 
					        ->setTitle(pht('Welcome to Phabricator'))
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht(
 | 
					          pht(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -128,7 +128,7 @@ EOBODY;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $error_view = null;
 | 
					    $error_view = null;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $error_view = new PHUIErrorView();
 | 
					      $error_view = new PHUIInfoView();
 | 
				
			||||||
      $error_view->setErrors($errors);
 | 
					      $error_view->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,8 +28,8 @@ final class PhabricatorMustVerifyEmailController
 | 
				
			|||||||
    $sent = null;
 | 
					    $sent = null;
 | 
				
			||||||
    if ($request->isFormPost()) {
 | 
					    if ($request->isFormPost()) {
 | 
				
			||||||
      $email->sendVerificationEmail($user);
 | 
					      $email->sendVerificationEmail($user);
 | 
				
			||||||
      $sent = new PHUIErrorView();
 | 
					      $sent = new PHUIInfoView();
 | 
				
			||||||
      $sent->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					      $sent->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
      $sent->setTitle(pht('Email Sent'));
 | 
					      $sent->setTitle(pht('Email Sent'));
 | 
				
			||||||
      $sent->appendChild(
 | 
					      $sent->appendChild(
 | 
				
			||||||
        pht(
 | 
					        pht(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -131,17 +131,17 @@ final class PhabricatorAuthListController
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!$domains_value && !$approval_value) {
 | 
					    if (!$domains_value && !$approval_value) {
 | 
				
			||||||
      $severity = PHUIErrorView::SEVERITY_WARNING;
 | 
					      $severity = PHUIInfoView::SEVERITY_WARNING;
 | 
				
			||||||
      $issues[] = pht(
 | 
					      $issues[] = pht(
 | 
				
			||||||
        'You can safely ignore this warning if the install itself has '.
 | 
					        'You can safely ignore this warning if the install itself has '.
 | 
				
			||||||
        'access controls (for example, it is deployed on a VPN) or if all of '.
 | 
					        'access controls (for example, it is deployed on a VPN) or if all of '.
 | 
				
			||||||
        'the configured providers have access controls (for example, they are '.
 | 
					        'the configured providers have access controls (for example, they are '.
 | 
				
			||||||
        'all private LDAP or OAuth servers).');
 | 
					        'all private LDAP or OAuth servers).');
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      $severity = PHUIErrorView::SEVERITY_NOTICE;
 | 
					      $severity = PHUIInfoView::SEVERITY_NOTICE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $warning = id(new PHUIErrorView())
 | 
					    $warning = id(new PHUIInfoView())
 | 
				
			||||||
      ->setSeverity($severity)
 | 
					      ->setSeverity($severity)
 | 
				
			||||||
      ->setErrors($issues);
 | 
					      ->setErrors($issues);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -121,7 +121,7 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
 | 
				
			|||||||
          ->setError($e_pass));
 | 
					          ->setError($e_pass));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())->setErrors($errors);
 | 
					      $errors = id(new PHUIInfoView())->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $dialog->appendChild($errors);
 | 
					    $dialog->appendChild($errors);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -217,7 +217,7 @@ final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())->setErrors($errors);
 | 
					      $errors = id(new PHUIInfoView())->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $form = id(new PHUIFormLayoutView())
 | 
					    $form = id(new PHUIFormLayoutView())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -103,7 +103,7 @@ final class PhabricatorCalendarEventEditController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $error_view = null;
 | 
					    $error_view = null;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $error_view = id(new PHUIErrorView())
 | 
					      $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Status can not be set!'))
 | 
					        ->setTitle(pht('Status can not be set!'))
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -83,22 +83,22 @@ final class PhabricatorCalendarViewController
 | 
				
			|||||||
    $view    = null;
 | 
					    $view    = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($request->getExists('created')) {
 | 
					    if ($request->getExists('created')) {
 | 
				
			||||||
      $view = id(new PHUIErrorView())
 | 
					      $view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild(pht('Successfully created your status.'));
 | 
					        ->appendChild(pht('Successfully created your status.'));
 | 
				
			||||||
    } else if ($request->getExists('updated')) {
 | 
					    } else if ($request->getExists('updated')) {
 | 
				
			||||||
      $view = id(new PHUIErrorView())
 | 
					      $view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild(pht('Successfully updated your status.'));
 | 
					        ->appendChild(pht('Successfully updated your status.'));
 | 
				
			||||||
    } else if ($request->getExists('deleted')) {
 | 
					    } else if ($request->getExists('deleted')) {
 | 
				
			||||||
      $view = id(new PHUIErrorView())
 | 
					      $view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild(pht('Successfully deleted your status.'));
 | 
					        ->appendChild(pht('Successfully deleted your status.'));
 | 
				
			||||||
    } else if (!$request->getUser()->isLoggedIn()) {
 | 
					    } else if (!$request->getUser()->isLoggedIn()) {
 | 
				
			||||||
      $login_uri = id(new PhutilURI('/auth/start/'))
 | 
					      $login_uri = id(new PhutilURI('/auth/start/'))
 | 
				
			||||||
        ->setQueryParam('next', '/calendar/');
 | 
					        ->setQueryParam('next', '/calendar/');
 | 
				
			||||||
      $view = id(new PHUIErrorView())
 | 
					      $view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht(
 | 
					          pht(
 | 
				
			||||||
            'You are not logged in. %s to see your calendar events.',
 | 
					            'You are not logged in. %s to see your calendar events.',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -108,23 +108,23 @@ final class PhabricatorConfigEditController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $error_view = null;
 | 
					    $error_view = null;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $error_view = id(new PHUIErrorView())
 | 
					      $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    } else if ($option->getHidden()) {
 | 
					    } else if ($option->getHidden()) {
 | 
				
			||||||
      $msg = pht(
 | 
					      $msg = pht(
 | 
				
			||||||
        'This configuration is hidden and can not be edited or viewed from '.
 | 
					        'This configuration is hidden and can not be edited or viewed from '.
 | 
				
			||||||
        'the web interface.');
 | 
					        'the web interface.');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $error_view = id(new PHUIErrorView())
 | 
					      $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Configuration Hidden'))
 | 
					        ->setTitle(pht('Configuration Hidden'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
        ->appendChild(phutil_tag('p', array(), $msg));
 | 
					        ->appendChild(phutil_tag('p', array(), $msg));
 | 
				
			||||||
    } else if ($option->getLocked()) {
 | 
					    } else if ($option->getLocked()) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $msg = $option->getLockedMessage();
 | 
					      $msg = $option->getLockedMessage();
 | 
				
			||||||
      $error_view = id(new PHUIErrorView())
 | 
					      $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Configuration Locked'))
 | 
					        ->setTitle(pht('Configuration Locked'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild(phutil_tag('p', array(), $msg));
 | 
					        ->appendChild(phutil_tag('p', array(), $msg));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,11 +49,11 @@ final class PhabricatorConfigIssueListController
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (empty($setup_issues)) {
 | 
					    if (empty($setup_issues)) {
 | 
				
			||||||
      $setup_issues[] = id(new PHUIErrorView())
 | 
					      $setup_issues[] = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('No Issues'))
 | 
					        ->setTitle(pht('No Issues'))
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht('Your install has no current setup issues to resolve.'))
 | 
					          pht('Your install has no current setup issues to resolve.'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $nav->appendChild($setup_issues);
 | 
					    $nav->appendChild($setup_issues);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,8 +18,8 @@ final class PhabricatorConfigIssueViewController
 | 
				
			|||||||
      PhabricatorSetupCheck::getUnignoredIssueKeys($issues));
 | 
					      PhabricatorSetupCheck::getUnignoredIssueKeys($issues));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (empty($issues[$this->issueKey])) {
 | 
					    if (empty($issues[$this->issueKey])) {
 | 
				
			||||||
      $content = id(new PHUIErrorView())
 | 
					      $content = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setTitle(pht('Issue Resolved'))
 | 
					        ->setTitle(pht('Issue Resolved'))
 | 
				
			||||||
        ->appendChild(pht('This setup issue has been resolved. '))
 | 
					        ->appendChild(pht('This setup issue has been resolved. '))
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -165,7 +165,7 @@ final class ConpherenceUpdateController
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $error_view = id(new PHUIErrorView())
 | 
					      $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,13 +24,13 @@ final class PhabricatorWorkerTaskDetailController
 | 
				
			|||||||
    if (!$task) {
 | 
					    if (!$task) {
 | 
				
			||||||
      $title = pht('Task Does Not Exist');
 | 
					      $title = pht('Task Does Not Exist');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $error_view = new PHUIErrorView();
 | 
					      $error_view = new PHUIInfoView();
 | 
				
			||||||
      $error_view->setTitle(pht('No Such Task'));
 | 
					      $error_view->setTitle(pht('No Such Task'));
 | 
				
			||||||
      $error_view->appendChild(phutil_tag(
 | 
					      $error_view->appendChild(phutil_tag(
 | 
				
			||||||
        'p',
 | 
					        'p',
 | 
				
			||||||
        array(),
 | 
					        array(),
 | 
				
			||||||
        pht('This task may have recently been garbage collected.')));
 | 
					        pht('This task may have recently been garbage collected.')));
 | 
				
			||||||
      $error_view->setSeverity(PHUIErrorView::SEVERITY_NODATA);
 | 
					      $error_view->setSeverity(PHUIInfoView::SEVERITY_NODATA);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $content = $error_view;
 | 
					      $content = $error_view;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,8 +56,8 @@ final class PhabricatorDashboardManageController
 | 
				
			|||||||
        'make changes, make a copy first.');
 | 
					        'make changes, make a copy first.');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $box->setErrorView(
 | 
					      $box->setErrorView(
 | 
				
			||||||
        id(new PHUIErrorView())
 | 
					        id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
          ->setErrors(array($no_edit)));
 | 
					          ->setErrors(array($no_edit)));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,8 +67,8 @@ final class PhabricatorDashboardViewController
 | 
				
			|||||||
    $id = $this->id;
 | 
					    $id = $this->id;
 | 
				
			||||||
    $manage_uri = $this->getApplicationURI("manage/{$id}/");
 | 
					    $manage_uri = $this->getApplicationURI("manage/{$id}/");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return id(new PHUIErrorView())
 | 
					    return id(new PHUIInfoView())
 | 
				
			||||||
      ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					      ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
      ->appendChild(
 | 
					      ->appendChild(
 | 
				
			||||||
        pht('This dashboard has no panels '.
 | 
					        pht('This dashboard has no panels '.
 | 
				
			||||||
          'yet. Use %s to add panels.',
 | 
					          'yet. Use %s to add panels.',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,8 +29,8 @@ final class DifferentialDiffViewController extends DifferentialController {
 | 
				
			|||||||
        ->setURI('/D'.$diff->getRevisionID().'?id='.$diff->getID());
 | 
					        ->setURI('/D'.$diff->getRevisionID().'?id='.$diff->getID());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $error_view = id(new PHUIErrorView())
 | 
					    $error_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
    // TODO: implement optgroup support in AphrontFormSelectControl?
 | 
					    // TODO: implement optgroup support in AphrontFormSelectControl?
 | 
				
			||||||
    $select = array();
 | 
					    $select = array();
 | 
				
			||||||
    $select[] = hsprintf('<optgroup label="%s">', pht('Create New Revision'));
 | 
					    $select[] = hsprintf('<optgroup label="%s">', pht('Create New Revision'));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ final class DifferentialRevisionLandController extends DifferentialController {
 | 
				
			|||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          $text = phutil_tag('pre', array(), $ex->getMessage());
 | 
					          $text = phutil_tag('pre', array(), $ex->getMessage());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $text = id(new PHUIErrorView())
 | 
					        $text = id(new PHUIInfoView())
 | 
				
			||||||
           ->appendChild($text);
 | 
					           ->appendChild($text);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -137,9 +137,9 @@ final class DifferentialRevisionViewController extends DifferentialController {
 | 
				
			|||||||
    $large = $request->getStr('large');
 | 
					    $large = $request->getStr('large');
 | 
				
			||||||
    if (count($changesets) > $limit && !$large) {
 | 
					    if (count($changesets) > $limit && !$large) {
 | 
				
			||||||
      $count = count($changesets);
 | 
					      $count = count($changesets);
 | 
				
			||||||
      $warning = new PHUIErrorView();
 | 
					      $warning = new PHUIInfoView();
 | 
				
			||||||
      $warning->setTitle('Very Large Diff');
 | 
					      $warning->setTitle('Very Large Diff');
 | 
				
			||||||
      $warning->setSeverity(PHUIErrorView::SEVERITY_WARNING);
 | 
					      $warning->setSeverity(PHUIInfoView::SEVERITY_WARNING);
 | 
				
			||||||
      $warning->appendChild(hsprintf(
 | 
					      $warning->appendChild(hsprintf(
 | 
				
			||||||
        '%s <strong>%s</strong>',
 | 
					        '%s <strong>%s</strong>',
 | 
				
			||||||
        pht(
 | 
					        pht(
 | 
				
			||||||
@@ -258,8 +258,8 @@ final class DifferentialRevisionViewController extends DifferentialController {
 | 
				
			|||||||
      $warning_handle_map,
 | 
					      $warning_handle_map,
 | 
				
			||||||
      $handles);
 | 
					      $handles);
 | 
				
			||||||
    if ($revision_warnings) {
 | 
					    if ($revision_warnings) {
 | 
				
			||||||
      $revision_warnings = id(new PHUIErrorView())
 | 
					      $revision_warnings = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
        ->setErrors($revision_warnings);
 | 
					        ->setErrors($revision_warnings);
 | 
				
			||||||
      $revision_detail_box->setErrorView($revision_warnings);
 | 
					      $revision_detail_box->setErrorView($revision_warnings);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -386,8 +386,8 @@ final class DifferentialRevisionViewController extends DifferentialController {
 | 
				
			|||||||
      $review_warnings = array_mergev($review_warnings);
 | 
					      $review_warnings = array_mergev($review_warnings);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if ($review_warnings) {
 | 
					      if ($review_warnings) {
 | 
				
			||||||
        $review_warnings_panel = id(new PHUIErrorView())
 | 
					        $review_warnings_panel = id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
          ->setErrors($review_warnings);
 | 
					          ->setErrors($review_warnings);
 | 
				
			||||||
        $comment_form->setErrorView($review_warnings_panel);
 | 
					        $comment_form->setErrorView($review_warnings_panel);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ final class DifferentialAddCommentView extends AphrontView {
 | 
				
			|||||||
  private $ccs = array();
 | 
					  private $ccs = array();
 | 
				
			||||||
  private $errorView;
 | 
					  private $errorView;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function setErrorView(PHUIErrorView $error_view) {
 | 
					  public function setErrorView(PHUIInfoView $error_view) {
 | 
				
			||||||
    $this->errorView = $error_view;
 | 
					    $this->errorView = $error_view;
 | 
				
			||||||
    return $this;
 | 
					    return $this;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -118,8 +118,8 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $follow  = $request->getStr('follow');
 | 
					    $follow  = $request->getStr('follow');
 | 
				
			||||||
    if ($follow) {
 | 
					    if ($follow) {
 | 
				
			||||||
      $notice = new PHUIErrorView();
 | 
					      $notice = new PHUIInfoView();
 | 
				
			||||||
      $notice->setSeverity(PHUIErrorView::SEVERITY_WARNING);
 | 
					      $notice->setSeverity(PHUIInfoView::SEVERITY_WARNING);
 | 
				
			||||||
      $notice->setTitle(pht('Unable to Continue'));
 | 
					      $notice->setTitle(pht('Unable to Continue'));
 | 
				
			||||||
      switch ($follow) {
 | 
					      switch ($follow) {
 | 
				
			||||||
        case 'first':
 | 
					        case 'first':
 | 
				
			||||||
@@ -138,8 +138,8 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $renamed = $request->getStr('renamed');
 | 
					    $renamed = $request->getStr('renamed');
 | 
				
			||||||
    if ($renamed) {
 | 
					    if ($renamed) {
 | 
				
			||||||
      $notice = new PHUIErrorView();
 | 
					      $notice = new PHUIInfoView();
 | 
				
			||||||
      $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					      $notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
      $notice->setTitle(pht('File Renamed'));
 | 
					      $notice->setTitle(pht('File Renamed'));
 | 
				
			||||||
      $notice->appendChild(
 | 
					      $notice->appendChild(
 | 
				
			||||||
        pht("File history passes through a rename from '%s' to '%s'.",
 | 
					        pht("File history passes through a rename from '%s' to '%s'.",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ final class DiffusionCommitController extends DiffusionController {
 | 
				
			|||||||
        return new Aphront404Response();
 | 
					        return new Aphront404Response();
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $error = id(new PHUIErrorView())
 | 
					      $error = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Commit Still Parsing'))
 | 
					        ->setTitle(pht('Commit Still Parsing'))
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht(
 | 
					          pht(
 | 
				
			||||||
@@ -79,9 +79,9 @@ final class DiffusionCommitController extends DiffusionController {
 | 
				
			|||||||
    if ($is_foreign) {
 | 
					    if ($is_foreign) {
 | 
				
			||||||
      $subpath = $commit_data->getCommitDetail('svn-subpath');
 | 
					      $subpath = $commit_data->getCommitDetail('svn-subpath');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $error_panel = new PHUIErrorView();
 | 
					      $error_panel = new PHUIInfoView();
 | 
				
			||||||
      $error_panel->setTitle(pht('Commit Not Tracked'));
 | 
					      $error_panel->setTitle(pht('Commit Not Tracked'));
 | 
				
			||||||
      $error_panel->setSeverity(PHUIErrorView::SEVERITY_WARNING);
 | 
					      $error_panel->setSeverity(PHUIInfoView::SEVERITY_WARNING);
 | 
				
			||||||
      $error_panel->appendChild(
 | 
					      $error_panel->appendChild(
 | 
				
			||||||
        pht("This Diffusion repository is configured to track only one ".
 | 
					        pht("This Diffusion repository is configured to track only one ".
 | 
				
			||||||
        "subdirectory of the entire Subversion repository, and this commit ".
 | 
					        "subdirectory of the entire Subversion repository, and this commit ".
 | 
				
			||||||
@@ -251,8 +251,8 @@ final class DiffusionCommitController extends DiffusionController {
 | 
				
			|||||||
          ->setTag('a')
 | 
					          ->setTag('a')
 | 
				
			||||||
          ->setIcon($icon);
 | 
					          ->setIcon($icon);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $warning_view = id(new PHUIErrorView())
 | 
					        $warning_view = id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
          ->setTitle('Very Large Commit')
 | 
					          ->setTitle('Very Large Commit')
 | 
				
			||||||
          ->appendChild(
 | 
					          ->appendChild(
 | 
				
			||||||
            pht('This commit is very large. Load each file individually.'));
 | 
					            pht('This commit is very large. Load each file individually.'));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -243,8 +243,8 @@ abstract class DiffusionController extends PhabricatorController {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  protected function renderStatusMessage($title, $body) {
 | 
					  protected function renderStatusMessage($title, $body) {
 | 
				
			||||||
    return id(new PHUIErrorView())
 | 
					    return id(new PHUIInfoView())
 | 
				
			||||||
      ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					      ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
      ->setTitle($title)
 | 
					      ->setTitle($title)
 | 
				
			||||||
      ->appendChild($body);
 | 
					      ->appendChild($body);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -69,9 +69,9 @@ final class DiffusionExternalController extends DiffusionController {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      $desc .= $id;
 | 
					      $desc .= $id;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $content = id(new PHUIErrorView())
 | 
					      $content = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Unknown External'))
 | 
					        ->setTitle(pht('Unknown External'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
        ->appendChild(phutil_tag(
 | 
					        ->appendChild(phutil_tag(
 | 
				
			||||||
          'p',
 | 
					          'p',
 | 
				
			||||||
          array(),
 | 
					          array(),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -84,7 +84,7 @@ final class DiffusionMirrorEditController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $form_errors = null;
 | 
					    $form_errors = null;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $form_errors = id(new PHUIErrorView())
 | 
					      $form_errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,9 +68,9 @@ final class DiffusionRepositoryController extends DiffusionController {
 | 
				
			|||||||
    if ($page_has_content) {
 | 
					    if ($page_has_content) {
 | 
				
			||||||
      $content[] = $this->buildNormalContent($drequest);
 | 
					      $content[] = $this->buildNormalContent($drequest);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      $content[] = id(new PHUIErrorView())
 | 
					      $content[] = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle($empty_title)
 | 
					        ->setTitle($empty_title)
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
        ->setErrors(array($empty_message));
 | 
					        ->setErrors(array($empty_message));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -258,8 +258,8 @@ final class DiffusionSetPasswordSettingsPanel extends PhabricatorSettingsPanel {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $saved = null;
 | 
					    $saved = null;
 | 
				
			||||||
    if ($request->getBool('saved')) {
 | 
					    if ($request->getBool('saved')) {
 | 
				
			||||||
      $saved = id(new PHUIErrorView())
 | 
					      $saved = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setTitle(pht('Password Updated'))
 | 
					        ->setTitle(pht('Password Updated'))
 | 
				
			||||||
        ->appendChild(pht('Your VCS password has been updated.'));
 | 
					        ->appendChild(pht('Your VCS password has been updated.'));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,12 +33,12 @@ final class DiffusionEmptyResultView extends DiffusionView {
 | 
				
			|||||||
        // TODO: Under git, this error message should be more specific. It
 | 
					        // TODO: Under git, this error message should be more specific. It
 | 
				
			||||||
        // may exist on some other branch.
 | 
					        // may exist on some other branch.
 | 
				
			||||||
        $body  = pht('This path does not exist anywhere.');
 | 
					        $body  = pht('This path does not exist anywhere.');
 | 
				
			||||||
        $severity = PHUIErrorView::SEVERITY_ERROR;
 | 
					        $severity = PHUIInfoView::SEVERITY_ERROR;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      case DiffusionBrowseResultSet::REASON_IS_EMPTY:
 | 
					      case DiffusionBrowseResultSet::REASON_IS_EMPTY:
 | 
				
			||||||
        $title = pht('Empty Directory');
 | 
					        $title = pht('Empty Directory');
 | 
				
			||||||
        $body = pht("This path was an empty directory at %s.\n", $commit);
 | 
					        $body = pht("This path was an empty directory at %s.\n", $commit);
 | 
				
			||||||
        $severity = PHUIErrorView::SEVERITY_NOTICE;
 | 
					        $severity = PHUIInfoView::SEVERITY_NOTICE;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      case DiffusionBrowseResultSet::REASON_IS_DELETED:
 | 
					      case DiffusionBrowseResultSet::REASON_IS_DELETED:
 | 
				
			||||||
        $deleted = $this->browseResultSet->getDeletedAtCommit();
 | 
					        $deleted = $this->browseResultSet->getDeletedAtCommit();
 | 
				
			||||||
@@ -60,7 +60,7 @@ final class DiffusionEmptyResultView extends DiffusionView {
 | 
				
			|||||||
          self::linkCommit($drequest->getRepository(), $deleted),
 | 
					          self::linkCommit($drequest->getRepository(), $deleted),
 | 
				
			||||||
          $browse,
 | 
					          $browse,
 | 
				
			||||||
          "r{$callsign}{$existed}");
 | 
					          "r{$callsign}{$existed}");
 | 
				
			||||||
        $severity = PHUIErrorView::SEVERITY_WARNING;
 | 
					        $severity = PHUIInfoView::SEVERITY_WARNING;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      case DiffusionBrowseResultSet::REASON_IS_UNTRACKED_PARENT:
 | 
					      case DiffusionBrowseResultSet::REASON_IS_UNTRACKED_PARENT:
 | 
				
			||||||
        $subdir = $drequest->getRepository()->getDetail('svn-subpath');
 | 
					        $subdir = $drequest->getRepository()->getDetail('svn-subpath');
 | 
				
			||||||
@@ -70,13 +70,13 @@ final class DiffusionEmptyResultView extends DiffusionView {
 | 
				
			|||||||
          "of the entire repository ('%s'), ".
 | 
					          "of the entire repository ('%s'), ".
 | 
				
			||||||
          "but you aren't looking at something in that subdirectory, so no ".
 | 
					          "but you aren't looking at something in that subdirectory, so no ".
 | 
				
			||||||
          "information is available.", $subdir);
 | 
					          "information is available.", $subdir);
 | 
				
			||||||
        $severity = PHUIErrorView::SEVERITY_WARNING;
 | 
					        $severity = PHUIInfoView::SEVERITY_WARNING;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      default:
 | 
					      default:
 | 
				
			||||||
        throw new Exception("Unknown failure reason: $reason");
 | 
					        throw new Exception("Unknown failure reason: $reason");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $error_view = new PHUIErrorView();
 | 
					    $error_view = new PHUIInfoView();
 | 
				
			||||||
    $error_view->setSeverity($severity);
 | 
					    $error_view->setSeverity($severity);
 | 
				
			||||||
    $error_view->setTitle($title);
 | 
					    $error_view->setTitle($title);
 | 
				
			||||||
    $error_view->appendChild(phutil_tag('p', array(), $body));
 | 
					    $error_view->appendChild(phutil_tag('p', array(), $body));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,10 +92,10 @@ final class DivinerAtomController extends DivinerController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $warnings = $atom->getWarnings();
 | 
					    $warnings = $atom->getWarnings();
 | 
				
			||||||
    if ($warnings) {
 | 
					    if ($warnings) {
 | 
				
			||||||
      $warnings = id(new PHUIErrorView())
 | 
					      $warnings = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($warnings)
 | 
					        ->setErrors($warnings)
 | 
				
			||||||
        ->setTitle(pht('Documentation Warnings'))
 | 
					        ->setTitle(pht('Documentation Warnings'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_WARNING);
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_WARNING);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $methods = $this->composeMethods($symbol);
 | 
					    $methods = $this->composeMethods($symbol);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -97,8 +97,8 @@ final class PhabricatorFactHomeController extends PhabricatorFactController {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!$options) {
 | 
					    if (!$options) {
 | 
				
			||||||
      return id(new PHUIErrorView())
 | 
					      return id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setTitle(pht('No Chartable Facts'))
 | 
					        ->setTitle(pht('No Chartable Facts'))
 | 
				
			||||||
        ->appendChild(phutil_tag(
 | 
					        ->appendChild(phutil_tag(
 | 
				
			||||||
          'p',
 | 
					          'p',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -88,8 +88,8 @@ final class PhabricatorFeedBuilder {
 | 
				
			|||||||
        $nodatastring = $this->noDataString;
 | 
					        $nodatastring = $this->noDataString;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $view = id(new PHUIErrorView())
 | 
					      $view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild($nodatastring);
 | 
					        ->appendChild($nodatastring);
 | 
				
			||||||
      $null_view->appendChild($view);
 | 
					      $null_view->appendChild($view);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@ final class HarbormasterPlanRunController extends HarbormasterController {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())->setErrors($errors);
 | 
					      $errors = id(new PHUIInfoView())->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $title = pht('Run Build Plan Manually');
 | 
					    $title = pht('Run Build Plan Manually');
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,7 +50,7 @@ final class HarbormasterStepAddController extends HarbormasterController {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())
 | 
					      $errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,8 +42,8 @@ final class HeraldTranscriptController extends HeraldController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $object_xscript = $xscript->getObjectTranscript();
 | 
					    $object_xscript = $xscript->getObjectTranscript();
 | 
				
			||||||
    if (!$object_xscript) {
 | 
					    if (!$object_xscript) {
 | 
				
			||||||
      $notice = id(new PHUIErrorView())
 | 
					      $notice = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setTitle(pht('Old Transcript'))
 | 
					        ->setTitle(pht('Old Transcript'))
 | 
				
			||||||
        ->appendChild(phutil_tag(
 | 
					        ->appendChild(phutil_tag(
 | 
				
			||||||
          'p',
 | 
					          'p',
 | 
				
			||||||
@@ -75,8 +75,8 @@ final class HeraldTranscriptController extends HeraldController {
 | 
				
			|||||||
      $this->handles = $handles;
 | 
					      $this->handles = $handles;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if ($xscript->getDryRun()) {
 | 
					      if ($xscript->getDryRun()) {
 | 
				
			||||||
        $notice = new PHUIErrorView();
 | 
					        $notice = new PHUIInfoView();
 | 
				
			||||||
        $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        $notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
        $notice->setTitle(pht('Dry Run'));
 | 
					        $notice->setTitle(pht('Dry Run'));
 | 
				
			||||||
        $notice->appendChild(pht('This was a dry run to test Herald '.
 | 
					        $notice->appendChild(pht('This was a dry run to test Herald '.
 | 
				
			||||||
          'rules, no actions were executed.'));
 | 
					          'rules, no actions were executed.'));
 | 
				
			||||||
@@ -319,8 +319,8 @@ final class HeraldTranscriptController extends HeraldController {
 | 
				
			|||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            return $panel;
 | 
					            return $panel;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          $panel = id(new PHUIErrorView())
 | 
					          $panel = id(new PHUIInfoView())
 | 
				
			||||||
            ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					            ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
            ->setTitle($title)
 | 
					            ->setTitle($title)
 | 
				
			||||||
            ->appendChild($body);
 | 
					            ->appendChild($body);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -327,8 +327,8 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private function renderMiniPanel($title, $body) {
 | 
					  private function renderMiniPanel($title, $body) {
 | 
				
			||||||
    $panel = new PHUIErrorView();
 | 
					    $panel = new PHUIInfoView();
 | 
				
			||||||
    $panel->setSeverity(PHUIErrorView::SEVERITY_NODATA);
 | 
					    $panel->setSeverity(PHUIInfoView::SEVERITY_NODATA);
 | 
				
			||||||
    $panel->appendChild(
 | 
					    $panel->appendChild(
 | 
				
			||||||
      phutil_tag(
 | 
					      phutil_tag(
 | 
				
			||||||
        'p',
 | 
					        'p',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -66,8 +66,8 @@ final class LegalpadDocumentSignController extends LegalpadController {
 | 
				
			|||||||
          // If they aren't logged in, we can't be as sure, so don't show
 | 
					          // If they aren't logged in, we can't be as sure, so don't show
 | 
				
			||||||
          // anything.
 | 
					          // anything.
 | 
				
			||||||
          if ($viewer->isLoggedIn()) {
 | 
					          if ($viewer->isLoggedIn()) {
 | 
				
			||||||
            $signed_status = id(new PHUIErrorView())
 | 
					            $signed_status = id(new PHUIInfoView())
 | 
				
			||||||
              ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					              ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
              ->setErrors(
 | 
					              ->setErrors(
 | 
				
			||||||
                array(
 | 
					                array(
 | 
				
			||||||
                  pht('You have not signed this document yet.'),
 | 
					                  pht('You have not signed this document yet.'),
 | 
				
			||||||
@@ -96,8 +96,8 @@ final class LegalpadDocumentSignController extends LegalpadController {
 | 
				
			|||||||
              phabricator_datetime($signed_at, $viewer));
 | 
					              phabricator_datetime($signed_at, $viewer));
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          $signed_status = id(new PHUIErrorView())
 | 
					          $signed_status = id(new PHUIInfoView())
 | 
				
			||||||
            ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					            ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
            ->setErrors(array($signed_text));
 | 
					            ->setErrors(array($signed_text));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -125,8 +125,8 @@ final class LegalpadDocumentSignController extends LegalpadController {
 | 
				
			|||||||
          $login_text = pht(
 | 
					          $login_text = pht(
 | 
				
			||||||
            'This document requires a corporate signatory. You must log in to '.
 | 
					            'This document requires a corporate signatory. You must log in to '.
 | 
				
			||||||
            'accept this document on behalf of a company you represent.');
 | 
					            'accept this document on behalf of a company you represent.');
 | 
				
			||||||
          $signed_status = id(new PHUIErrorView())
 | 
					          $signed_status = id(new PHUIInfoView())
 | 
				
			||||||
            ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					            ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
            ->setErrors(array($login_text));
 | 
					            ->setErrors(array($login_text));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -266,7 +266,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
 | 
				
			|||||||
    if (!$has_signed) {
 | 
					    if (!$has_signed) {
 | 
				
			||||||
      $error_view = null;
 | 
					      $error_view = null;
 | 
				
			||||||
      if ($errors) {
 | 
					      if ($errors) {
 | 
				
			||||||
        $error_view = id(new PHUIErrorView())
 | 
					        $error_view = id(new PHUIInfoView())
 | 
				
			||||||
          ->setErrors($errors);
 | 
					          ->setErrors($errors);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -293,8 +293,8 @@ final class LegalpadDocumentSignatureSearchEngine
 | 
				
			|||||||
      ->appendChild($table);
 | 
					      ->appendChild($table);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!$this->document) {
 | 
					    if (!$this->document) {
 | 
				
			||||||
      $policy_notice = id(new PHUIErrorView())
 | 
					      $policy_notice = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setErrors(
 | 
					        ->setErrors(
 | 
				
			||||||
          array(
 | 
					          array(
 | 
				
			||||||
            pht(
 | 
					            pht(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -262,9 +262,9 @@ final class ManiphestReportController extends ManiphestController {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($caption) {
 | 
					    if ($caption) {
 | 
				
			||||||
      $caption = id(new PHUIErrorView())
 | 
					      $caption = id(new PHUIInfoView())
 | 
				
			||||||
        ->appendChild($caption)
 | 
					        ->appendChild($caption)
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $panel = new PHUIObjectBoxView();
 | 
					    $panel = new PHUIObjectBoxView();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -522,7 +522,7 @@ final class ManiphestTaskEditController extends ManiphestController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $error_view = null;
 | 
					    $error_view = null;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $error_view = new PHUIErrorView();
 | 
					      $error_view = new PHUIInfoView();
 | 
				
			||||||
      $error_view->setErrors($errors);
 | 
					      $error_view->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -692,7 +692,7 @@ final class ManiphestTaskEditController extends ManiphestController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $field_list->appendFieldsToForm($form);
 | 
					    $field_list->appendFieldsToForm($form);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    require_celerity_resource('phui-error-view-css');
 | 
					    require_celerity_resource('phui-info-view-css');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Javelin::initBehavior('project-create', array(
 | 
					    Javelin::initBehavior('project-create', array(
 | 
				
			||||||
      'tokenizerID' => $project_tokenizer_id,
 | 
					      'tokenizerID' => $project_tokenizer_id,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -247,7 +247,7 @@ final class PhabricatorApplicationEditEmailController
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())
 | 
					      $errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ final class PhabricatorNotificationStatusController
 | 
				
			|||||||
      $status = PhabricatorNotificationClient::getServerStatus();
 | 
					      $status = PhabricatorNotificationClient::getServerStatus();
 | 
				
			||||||
      $status = $this->renderServerStatus($status);
 | 
					      $status = $this->renderServerStatus($status);
 | 
				
			||||||
    } catch (Exception $ex) {
 | 
					    } catch (Exception $ex) {
 | 
				
			||||||
      $status = new PHUIErrorView();
 | 
					      $status = new PHUIInfoView();
 | 
				
			||||||
      $status->setTitle('Notification Server Issue');
 | 
					      $status->setTitle('Notification Server Issue');
 | 
				
			||||||
      $status->appendChild(hsprintf(
 | 
					      $status->appendChild(hsprintf(
 | 
				
			||||||
        'Unable to determine server status. This probably means the server '.
 | 
					        'Unable to determine server status. This probably means the server '.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,8 +55,8 @@ abstract class PhabricatorOAuthServerController
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  protected function buildErrorView($error_message) {
 | 
					  protected function buildErrorView($error_message) {
 | 
				
			||||||
    $error = new PHUIErrorView();
 | 
					    $error = new PHUIInfoView();
 | 
				
			||||||
    $error->setSeverity(PHUIErrorView::SEVERITY_ERROR);
 | 
					    $error->setSeverity(PHUIInfoView::SEVERITY_ERROR);
 | 
				
			||||||
    $error->setTitle($error_message);
 | 
					    $error->setTitle($error_message);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return $error;
 | 
					    return $error;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -322,7 +322,7 @@ final class PassphraseCredentialEditController extends PassphraseController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if ($request->isAjax()) {
 | 
					    if ($request->isAjax()) {
 | 
				
			||||||
      if ($errors) {
 | 
					      if ($errors) {
 | 
				
			||||||
        $errors = id(new PHUIErrorView())->setErrors($errors);
 | 
					        $errors = id(new PHUIInfoView())->setErrors($errors);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $dialog = id(new AphrontDialogView())
 | 
					      $dialog = id(new AphrontDialogView())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@ final class PhabricatorPeopleInviteSendController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $message = $request->getStr('message');
 | 
					    $message = $request->getStr('message');
 | 
				
			||||||
    $emails = $request->getStr('emails');
 | 
					    $emails = $request->getStr('emails');
 | 
				
			||||||
    $severity = PHUIErrorView::SEVERITY_ERROR;
 | 
					    $severity = PHUIInfoView::SEVERITY_ERROR;
 | 
				
			||||||
    if ($request->isFormPost()) {
 | 
					    if ($request->isFormPost()) {
 | 
				
			||||||
      // NOTE: We aren't using spaces as a delimiter here because email
 | 
					      // NOTE: We aren't using spaces as a delimiter here because email
 | 
				
			||||||
      // addresses with names often include spaces.
 | 
					      // addresses with names often include spaces.
 | 
				
			||||||
@@ -61,13 +61,13 @@ final class PhabricatorPeopleInviteSendController
 | 
				
			|||||||
          $confirm_errors[] = pht(
 | 
					          $confirm_errors[] = pht(
 | 
				
			||||||
            'All of the addresses appear to be valid invite recipients. '.
 | 
					            'All of the addresses appear to be valid invite recipients. '.
 | 
				
			||||||
            'Confirm the actions below to continue.');
 | 
					            'Confirm the actions below to continue.');
 | 
				
			||||||
          $severity = PHUIErrorView::SEVERITY_NOTICE;
 | 
					          $severity = PHUIInfoView::SEVERITY_NOTICE;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          $confirm_errors[] = pht(
 | 
					          $confirm_errors[] = pht(
 | 
				
			||||||
            'Some of the addresses you entered do not appear to be '.
 | 
					            'Some of the addresses you entered do not appear to be '.
 | 
				
			||||||
            'valid recipients. Review the table below. You can revise '.
 | 
					            'valid recipients. Review the table below. You can revise '.
 | 
				
			||||||
            'the address list, or ignore these errors and continue.');
 | 
					            'the address list, or ignore these errors and continue.');
 | 
				
			||||||
          $severity = PHUIErrorView::SEVERITY_WARNING;
 | 
					          $severity = PHUIInfoView::SEVERITY_WARNING;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($any_valid && $request->getBool('confirm')) {
 | 
					        if ($any_valid && $request->getBool('confirm')) {
 | 
				
			||||||
@@ -159,7 +159,7 @@ final class PhabricatorPeopleInviteSendController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      $confirm_box = id(new PHUIObjectBoxView())
 | 
					      $confirm_box = id(new PHUIObjectBoxView())
 | 
				
			||||||
        ->setErrorView(
 | 
					        ->setErrorView(
 | 
				
			||||||
          id(new PHUIErrorView())
 | 
					          id(new PHUIInfoView())
 | 
				
			||||||
            ->setErrors($confirm_errors)
 | 
					            ->setErrors($confirm_errors)
 | 
				
			||||||
            ->setSeverity($severity))
 | 
					            ->setSeverity($severity))
 | 
				
			||||||
        ->setHeaderText(pht('Confirm Invites'))
 | 
					        ->setHeaderText(pht('Confirm Invites'))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -69,8 +69,8 @@ final class PhabricatorPeopleLdapController
 | 
				
			|||||||
    $emails = $request->getArr('email');
 | 
					    $emails = $request->getArr('email');
 | 
				
			||||||
    $names = $request->getArr('name');
 | 
					    $names = $request->getArr('name');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $notice_view = new PHUIErrorView();
 | 
					    $notice_view = new PHUIInfoView();
 | 
				
			||||||
    $notice_view->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					    $notice_view->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
    $notice_view->setTitle(pht('Import Successful'));
 | 
					    $notice_view->setTitle(pht('Import Successful'));
 | 
				
			||||||
    $notice_view->setErrors(array(
 | 
					    $notice_view->setErrors(array(
 | 
				
			||||||
      pht('Successfully imported users from LDAP'),
 | 
					      pht('Successfully imported users from LDAP'),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,7 +101,7 @@ final class PhabricatorPeopleRenameController
 | 
				
			|||||||
          ->setError($e_username));
 | 
					          ->setError($e_username));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())->setErrors($errors);
 | 
					      $errors = id(new PHUIInfoView())->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return $this->newDialog()
 | 
					    return $this->newDialog()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -95,8 +95,8 @@ abstract class PhameController extends PhabricatorController {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (empty($stories)) {
 | 
					    if (empty($stories)) {
 | 
				
			||||||
      return id(new PHUIErrorView())
 | 
					      return id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild($nodata);
 | 
					        ->appendChild($nodata);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,8 +70,8 @@ final class PhamePostNewController extends PhameController {
 | 
				
			|||||||
    $nav->appendChild($crumbs);
 | 
					    $nav->appendChild($crumbs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!$blogs) {
 | 
					    if (!$blogs) {
 | 
				
			||||||
      $notification = id(new PHUIErrorView())
 | 
					      $notification = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht('You do not have permission to join any blogs. Create a blog '.
 | 
					          pht('You do not have permission to join any blogs. Create a blog '.
 | 
				
			||||||
              'first, then you can post to it.'));
 | 
					              'first, then you can post to it.'));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,8 +49,8 @@ final class PhamePostViewController extends PhameController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if ($post->isDraft()) {
 | 
					    if ($post->isDraft()) {
 | 
				
			||||||
      $object_box->appendChild(
 | 
					      $object_box->appendChild(
 | 
				
			||||||
        id(new PHUIErrorView())
 | 
					        id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
          ->setTitle(pht('Draft Post'))
 | 
					          ->setTitle(pht('Draft Post'))
 | 
				
			||||||
          ->appendChild(
 | 
					          ->appendChild(
 | 
				
			||||||
            pht('Only you can see this draft until you publish it. '.
 | 
					            pht('Only you can see this draft until you publish it. '.
 | 
				
			||||||
@@ -59,8 +59,8 @@ final class PhamePostViewController extends PhameController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (!$post->getBlog()) {
 | 
					    if (!$post->getBlog()) {
 | 
				
			||||||
      $object_box->appendChild(
 | 
					      $object_box->appendChild(
 | 
				
			||||||
        id(new PHUIErrorView())
 | 
					        id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
 | 
				
			||||||
          ->setTitle(pht('Not On A Blog'))
 | 
					          ->setTitle(pht('Not On A Blog'))
 | 
				
			||||||
          ->appendChild(
 | 
					          ->appendChild(
 | 
				
			||||||
            pht('This post is not associated with a blog (the blog may have '.
 | 
					            pht('This post is not associated with a blog (the blog may have '.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -86,8 +86,8 @@ final class PhortuneCartViewController
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      case PhortuneCart::STATUS_PURCHASED:
 | 
					      case PhortuneCart::STATUS_PURCHASED:
 | 
				
			||||||
        $error_view = id(new PHUIErrorView())
 | 
					        $error_view = id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
          ->appendChild(pht('This purchase has been completed.'));
 | 
					          ->appendChild(pht('This purchase has been completed.'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -125,7 +125,7 @@ final class PhortunePaymentMethodCreateController
 | 
				
			|||||||
        $dialog = id(new AphrontDialogView())
 | 
					        $dialog = id(new AphrontDialogView())
 | 
				
			||||||
          ->setUser($viewer)
 | 
					          ->setUser($viewer)
 | 
				
			||||||
          ->setTitle(pht('Error Adding Payment Method'))
 | 
					          ->setTitle(pht('Error Adding Payment Method'))
 | 
				
			||||||
          ->appendChild(id(new PHUIErrorView())->setErrors($errors))
 | 
					          ->appendChild(id(new PHUIInfoView())->setErrors($errors))
 | 
				
			||||||
          ->addCancelButton($request->getRequestURI());
 | 
					          ->addCancelButton($request->getRequestURI());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return id(new AphrontDialogResponse())->setDialog($dialog);
 | 
					        return id(new AphrontDialogResponse())->setDialog($dialog);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -204,9 +204,9 @@ abstract class PhragmentController extends PhabricatorController {
 | 
				
			|||||||
  public function renderConfigurationWarningIfRequired() {
 | 
					  public function renderConfigurationWarningIfRequired() {
 | 
				
			||||||
    $alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
 | 
					    $alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
 | 
				
			||||||
    if ($alt === null) {
 | 
					    if ($alt === null) {
 | 
				
			||||||
      return id(new PHUIErrorView())
 | 
					      return id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('security.alternate-file-domain must be configured!'))
 | 
					        ->setTitle(pht('security.alternate-file-domain must be configured!'))
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_ERROR)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_ERROR)
 | 
				
			||||||
        ->appendChild(phutil_tag('p', array(), pht(
 | 
					        ->appendChild(phutil_tag('p', array(), pht(
 | 
				
			||||||
          'Because Phragment generates files (such as ZIP archives and '.
 | 
					          'Because Phragment generates files (such as ZIP archives and '.
 | 
				
			||||||
          'patches) as they are requested, it requires that you configure '.
 | 
					          'patches) as they are requested, it requires that you configure '.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -64,7 +64,7 @@ final class PhragmentCreateController extends PhragmentController {
 | 
				
			|||||||
        return id(new AphrontRedirectResponse())
 | 
					        return id(new AphrontRedirectResponse())
 | 
				
			||||||
          ->setURI('/phragment/browse/'.trim($parent_path.'/'.$v_name, '/'));
 | 
					          ->setURI('/phragment/browse/'.trim($parent_path.'/'.$v_name, '/'));
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        $error_view = id(new PHUIErrorView())
 | 
					        $error_view = id(new PHUIInfoView())
 | 
				
			||||||
          ->setErrors($errors)
 | 
					          ->setErrors($errors)
 | 
				
			||||||
          ->setTitle(pht('Errors while creating fragment'));
 | 
					          ->setTitle(pht('Errors while creating fragment'));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,7 +43,7 @@ final class PhragmentUpdateController extends PhragmentController {
 | 
				
			|||||||
        return id(new AphrontRedirectResponse())
 | 
					        return id(new AphrontRedirectResponse())
 | 
				
			||||||
          ->setURI('/phragment/browse/'.$fragment->getPath());
 | 
					          ->setURI('/phragment/browse/'.$fragment->getPath());
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        $error_view = id(new PHUIErrorView())
 | 
					        $error_view = id(new PHUIInfoView())
 | 
				
			||||||
          ->setErrors($errors)
 | 
					          ->setErrors($errors)
 | 
				
			||||||
          ->setTitle(pht('Errors while updating fragment'));
 | 
					          ->setTitle(pht('Errors while updating fragment'));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,8 +42,8 @@ final class PhrictionDocumentController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      $create_uri = '/phriction/edit/?slug='.$slug;
 | 
					      $create_uri = '/phriction/edit/?slug='.$slug;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $notice = new PHUIErrorView();
 | 
					      $notice = new PHUIInfoView();
 | 
				
			||||||
      $notice->setSeverity(PHUIErrorView::SEVERITY_NODATA);
 | 
					      $notice->setSeverity(PHUIInfoView::SEVERITY_NODATA);
 | 
				
			||||||
      $notice->setTitle(pht('No content here!'));
 | 
					      $notice->setTitle(pht('No content here!'));
 | 
				
			||||||
      $notice->appendChild(
 | 
					      $notice->appendChild(
 | 
				
			||||||
        pht(
 | 
					        pht(
 | 
				
			||||||
@@ -67,8 +67,8 @@ final class PhrictionDocumentController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if ($content->getID() != $document->getContentID()) {
 | 
					        if ($content->getID() != $document->getContentID()) {
 | 
				
			||||||
          $vdate = phabricator_datetime($content->getDateCreated(), $user);
 | 
					          $vdate = phabricator_datetime($content->getDateCreated(), $user);
 | 
				
			||||||
          $version_note = new PHUIErrorView();
 | 
					          $version_note = new PHUIInfoView();
 | 
				
			||||||
          $version_note->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					          $version_note->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
          $version_note->appendChild(
 | 
					          $version_note->appendChild(
 | 
				
			||||||
            pht('You are viewing an older version of this document, as it '.
 | 
					            pht('You are viewing an older version of this document, as it '.
 | 
				
			||||||
            'appeared on %s.', $vdate));
 | 
					            'appeared on %s.', $vdate));
 | 
				
			||||||
@@ -88,16 +88,16 @@ final class PhrictionDocumentController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $core_content = $content->renderContent($user);
 | 
					        $core_content = $content->renderContent($user);
 | 
				
			||||||
      } else if ($current_status == PhrictionChangeType::CHANGE_DELETE) {
 | 
					      } else if ($current_status == PhrictionChangeType::CHANGE_DELETE) {
 | 
				
			||||||
        $notice = new PHUIErrorView();
 | 
					        $notice = new PHUIInfoView();
 | 
				
			||||||
        $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        $notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
        $notice->setTitle(pht('Document Deleted'));
 | 
					        $notice->setTitle(pht('Document Deleted'));
 | 
				
			||||||
        $notice->appendChild(
 | 
					        $notice->appendChild(
 | 
				
			||||||
          pht('This document has been deleted. You can edit it to put new '.
 | 
					          pht('This document has been deleted. You can edit it to put new '.
 | 
				
			||||||
          'content here, or use history to revert to an earlier version.'));
 | 
					          'content here, or use history to revert to an earlier version.'));
 | 
				
			||||||
        $core_content = $notice->render();
 | 
					        $core_content = $notice->render();
 | 
				
			||||||
      } else if ($current_status == PhrictionChangeType::CHANGE_STUB) {
 | 
					      } else if ($current_status == PhrictionChangeType::CHANGE_STUB) {
 | 
				
			||||||
        $notice = new PHUIErrorView();
 | 
					        $notice = new PHUIInfoView();
 | 
				
			||||||
        $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					        $notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
        $notice->setTitle(pht('Empty Document'));
 | 
					        $notice->setTitle(pht('Empty Document'));
 | 
				
			||||||
        $notice->appendChild(
 | 
					        $notice->appendChild(
 | 
				
			||||||
          pht('This document is empty. You can edit it to put some proper '.
 | 
					          pht('This document is empty. You can edit it to put some proper '.
 | 
				
			||||||
@@ -119,8 +119,8 @@ final class PhrictionDocumentController
 | 
				
			|||||||
          $slug_uri = PhrictionDocument::getSlugURI($new_doc->getSlug());
 | 
					          $slug_uri = PhrictionDocument::getSlugURI($new_doc->getSlug());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $notice = id(new PHUIErrorView())
 | 
					        $notice = id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($slug_uri) {
 | 
					        if ($slug_uri) {
 | 
				
			||||||
          $notice->appendChild(
 | 
					          $notice->appendChild(
 | 
				
			||||||
@@ -164,8 +164,8 @@ final class PhrictionDocumentController
 | 
				
			|||||||
          $slug_uri = PhrictionDocument::getSlugURI($from_doc->getSlug());
 | 
					          $slug_uri = PhrictionDocument::getSlugURI($from_doc->getSlug());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $move_notice = id(new PHUIErrorView())
 | 
					        $move_notice = id(new PHUIInfoView())
 | 
				
			||||||
          ->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					          ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($slug_uri) {
 | 
					        if ($slug_uri) {
 | 
				
			||||||
          $move_notice->appendChild(
 | 
					          $move_notice->appendChild(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,8 +94,8 @@ final class PhrictionEditController
 | 
				
			|||||||
        ),
 | 
					        ),
 | 
				
			||||||
        pht('discard this draft'));
 | 
					        pht('discard this draft'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $draft_note = new PHUIErrorView();
 | 
					      $draft_note = new PHUIInfoView();
 | 
				
			||||||
      $draft_note->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					      $draft_note->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
      $draft_note->setTitle('Recovered Draft');
 | 
					      $draft_note->setTitle('Recovered Draft');
 | 
				
			||||||
      $draft_note->appendChild(hsprintf(
 | 
					      $draft_note->appendChild(hsprintf(
 | 
				
			||||||
        '<p>Showing a saved draft of your edits, you can %s.</p>',
 | 
					        '<p>Showing a saved draft of your edits, you can %s.</p>',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -138,7 +138,7 @@ final class PhabricatorPolicyEditController
 | 
				
			|||||||
      ));
 | 
					      ));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())
 | 
					      $errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,8 +30,8 @@ final class PonderQuestionViewController extends PonderController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $authors = mpull($question->getAnswers(), null, 'getAuthorPHID');
 | 
					    $authors = mpull($question->getAnswers(), null, 'getAuthorPHID');
 | 
				
			||||||
    if (isset($authors[$user->getPHID()])) {
 | 
					    if (isset($authors[$user->getPHID()])) {
 | 
				
			||||||
      $answer_add_panel = id(new PHUIErrorView())
 | 
					      $answer_add_panel = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild(
 | 
					        ->appendChild(
 | 
				
			||||||
          pht(
 | 
					          pht(
 | 
				
			||||||
            'You have already answered this question. You can not answer '.
 | 
					            'You have already answered this question. You can not answer '.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -210,8 +210,8 @@ final class ReleephRequestEditController extends ReleephBranchController {
 | 
				
			|||||||
          $age_string,
 | 
					          $age_string,
 | 
				
			||||||
          $handles[$pull->getRequestUserPHID()]->renderLink()),
 | 
					          $handles[$pull->getRequestUserPHID()]->renderLink()),
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
      $notice_view = id(new PHUIErrorView())
 | 
					      $notice_view = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->setErrors($notice_messages);
 | 
					        ->setErrors($notice_messages);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -165,7 +165,7 @@ final class PhabricatorApplicationSearchController
 | 
				
			|||||||
    $errors = $engine->getErrors();
 | 
					    $errors = $engine->getErrors();
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $run_query = false;
 | 
					      $run_query = false;
 | 
				
			||||||
      $errors = id(new PHUIErrorView())
 | 
					      $errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle(pht('Query Errors'))
 | 
					        ->setTitle(pht('Query Errors'))
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -61,8 +61,8 @@ final class PhabricatorConduitCertificateSettingsPanel
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($request->getStr('regenerated')) {
 | 
					    if ($request->getStr('regenerated')) {
 | 
				
			||||||
      $notice = new PHUIErrorView();
 | 
					      $notice = new PHUIInfoView();
 | 
				
			||||||
      $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
 | 
					      $notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
 | 
				
			||||||
      $notice->setTitle(pht('Certificate Regenerated'));
 | 
					      $notice->setTitle(pht('Certificate Regenerated'));
 | 
				
			||||||
      $notice->appendChild(phutil_tag(
 | 
					      $notice->appendChild(phutil_tag(
 | 
				
			||||||
        'p',
 | 
					        'p',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -228,7 +228,7 @@ final class PhabricatorEmailAddressesSettingsPanel
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $errors = id(new PHUIErrorView())
 | 
					      $errors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,14 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
final class PHUIErrorExample extends PhabricatorUIExample {
 | 
					final class PHUIInfoExample extends PhabricatorUIExample {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function getName() {
 | 
					  public function getName() {
 | 
				
			||||||
    return 'Errors';
 | 
					    return 'Info View';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function getDescription() {
 | 
					  public function getDescription() {
 | 
				
			||||||
    return hsprintf(
 | 
					    return hsprintf(
 | 
				
			||||||
      'Use <tt>PHUIErrorView</tt> to render errors, warnings and notices.');
 | 
					      'Use <tt>PHUIInfoView</tt> to render errors, warnings and notices.');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function renderExample() {
 | 
					  public function renderExample() {
 | 
				
			||||||
@@ -16,11 +16,11 @@ final class PHUIErrorExample extends PhabricatorUIExample {
 | 
				
			|||||||
    $user = $request->getUser();
 | 
					    $user = $request->getUser();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $sevs = array(
 | 
					    $sevs = array(
 | 
				
			||||||
      PHUIErrorView::SEVERITY_ERROR    => 'Error',
 | 
					      PHUIInfoView::SEVERITY_ERROR    => 'Error',
 | 
				
			||||||
      PHUIErrorView::SEVERITY_WARNING  => 'Warning',
 | 
					      PHUIInfoView::SEVERITY_WARNING  => 'Warning',
 | 
				
			||||||
      PHUIErrorView::SEVERITY_NOTICE   => 'Notice',
 | 
					      PHUIInfoView::SEVERITY_NODATA   => 'No Data',
 | 
				
			||||||
      PHUIErrorView::SEVERITY_NODATA   => 'No Data',
 | 
					      PHUIInfoView::SEVERITY_NOTICE   => 'Notice',
 | 
				
			||||||
      PHUIErrorView::SEVERITY_SUCCESS   => 'Success',
 | 
					      PHUIInfoView::SEVERITY_SUCCESS   => 'Success',
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $button = id(new PHUIButtonView())
 | 
					    $button = id(new PHUIButtonView())
 | 
				
			||||||
@@ -31,22 +31,26 @@ final class PHUIErrorExample extends PhabricatorUIExample {
 | 
				
			|||||||
    $views = array();
 | 
					    $views = array();
 | 
				
			||||||
    // Only Title
 | 
					    // Only Title
 | 
				
			||||||
    foreach ($sevs as $sev => $title) {
 | 
					    foreach ($sevs as $sev => $title) {
 | 
				
			||||||
      $view = new PHUIErrorView();
 | 
					      $view = new PHUIInfoView();
 | 
				
			||||||
      $view->setSeverity($sev);
 | 
					      $view->setSeverity($sev);
 | 
				
			||||||
      $view->setTitle($title);
 | 
					      $view->setTitle($title);
 | 
				
			||||||
      $views[] = $view;
 | 
					      $views[] = $view;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    $views[] = phutil_tag('br', array(), null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Only Body
 | 
					    // Only Body
 | 
				
			||||||
    foreach ($sevs as $sev => $title) {
 | 
					    foreach ($sevs as $sev => $title) {
 | 
				
			||||||
      $view = new PHUIErrorView();
 | 
					      $view = new PHUIInfoView();
 | 
				
			||||||
      $view->setSeverity($sev);
 | 
					      $view->setSeverity($sev);
 | 
				
			||||||
      $view->appendChild('Several issues were encountered.');
 | 
					      $view->appendChild('Several issues were encountered.');
 | 
				
			||||||
      $view->addButton($button);
 | 
					      $view->addButton($button);
 | 
				
			||||||
      $views[] = $view;
 | 
					      $views[] = $view;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    $views[] = phutil_tag('br', array(), null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Only Errors
 | 
					    // Only Errors
 | 
				
			||||||
    foreach ($sevs as $sev => $title) {
 | 
					    foreach ($sevs as $sev => $title) {
 | 
				
			||||||
      $view = new PHUIErrorView();
 | 
					      $view = new PHUIInfoView();
 | 
				
			||||||
      $view->setSeverity($sev);
 | 
					      $view->setSeverity($sev);
 | 
				
			||||||
      $view->setErrors(
 | 
					      $view->setErrors(
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
@@ -56,9 +60,11 @@ final class PHUIErrorExample extends PhabricatorUIExample {
 | 
				
			|||||||
        ));
 | 
					        ));
 | 
				
			||||||
      $views[] = $view;
 | 
					      $views[] = $view;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    $views[] = phutil_tag('br', array(), null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // All
 | 
					    // All
 | 
				
			||||||
    foreach ($sevs as $sev => $title) {
 | 
					    foreach ($sevs as $sev => $title) {
 | 
				
			||||||
      $view = new PHUIErrorView();
 | 
					      $view = new PHUIInfoView();
 | 
				
			||||||
      $view->setSeverity($sev);
 | 
					      $view->setSeverity($sev);
 | 
				
			||||||
      $view->setTitle($title);
 | 
					      $view->setTitle($title);
 | 
				
			||||||
      $view->appendChild('Several issues were encountered.');
 | 
					      $view->appendChild('Several issues were encountered.');
 | 
				
			||||||
@@ -292,7 +292,7 @@ final class AphrontDialogView extends AphrontView {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $children = array(
 | 
					      $children = array(
 | 
				
			||||||
        id(new PHUIErrorView())->setErrors($errors),
 | 
					        id(new PHUIInfoView())->setErrors($errors),
 | 
				
			||||||
        $children,
 | 
					        $children,
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
final class PHUIErrorView extends AphrontView {
 | 
					final class PHUIInfoView extends AphrontView {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const SEVERITY_ERROR = 'error';
 | 
					  const SEVERITY_ERROR = 'error';
 | 
				
			||||||
  const SEVERITY_WARNING = 'warning';
 | 
					  const SEVERITY_WARNING = 'warning';
 | 
				
			||||||
@@ -41,7 +41,7 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  final public function render() {
 | 
					  final public function render() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    require_celerity_resource('phui-error-view-css');
 | 
					    require_celerity_resource('phui-info-view-css');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $errors = $this->errors;
 | 
					    $errors = $this->errors;
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
@@ -55,7 +55,7 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
      $list = phutil_tag(
 | 
					      $list = phutil_tag(
 | 
				
			||||||
        'ul',
 | 
					        'ul',
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
          'class' => 'phui-error-view-list',
 | 
					          'class' => 'phui-info-view-list',
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        $list);
 | 
					        $list);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
@@ -67,7 +67,7 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
      $title = phutil_tag(
 | 
					      $title = phutil_tag(
 | 
				
			||||||
        'h1',
 | 
					        'h1',
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
          'class' => 'phui-error-view-head',
 | 
					          'class' => 'phui-info-view-head',
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        $title);
 | 
					        $title);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
@@ -77,8 +77,8 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
    $this->severity = nonempty($this->severity, self::SEVERITY_ERROR);
 | 
					    $this->severity = nonempty($this->severity, self::SEVERITY_ERROR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $classes = array();
 | 
					    $classes = array();
 | 
				
			||||||
    $classes[] = 'phui-error-view';
 | 
					    $classes[] = 'phui-info-view';
 | 
				
			||||||
    $classes[] = 'phui-error-severity-'.$this->severity;
 | 
					    $classes[] = 'phui-info-severity-'.$this->severity;
 | 
				
			||||||
    $classes[] = 'grouped';
 | 
					    $classes[] = 'grouped';
 | 
				
			||||||
    $classes = implode(' ', $classes);
 | 
					    $classes = implode(' ', $classes);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -92,7 +92,7 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
      $body = phutil_tag(
 | 
					      $body = phutil_tag(
 | 
				
			||||||
        'div',
 | 
					        'div',
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
          'class' => 'phui-error-view-body',
 | 
					          'class' => 'phui-info-view-body',
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        $children);
 | 
					        $children);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -102,7 +102,7 @@ final class PHUIErrorView extends AphrontView {
 | 
				
			|||||||
      $buttons = phutil_tag(
 | 
					      $buttons = phutil_tag(
 | 
				
			||||||
        'div',
 | 
					        'div',
 | 
				
			||||||
        array(
 | 
					        array(
 | 
				
			||||||
          'class' => 'phui-error-view-actions',
 | 
					          'class' => 'phui-info-view-actions',
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        $this->buttons);
 | 
					        $this->buttons);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -93,7 +93,7 @@ final class PHUIObjectBoxView extends AphrontView {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  public function setFormErrors(array $errors, $title = null) {
 | 
					  public function setFormErrors(array $errors, $title = null) {
 | 
				
			||||||
    if ($errors) {
 | 
					    if ($errors) {
 | 
				
			||||||
      $this->formErrors = id(new PHUIErrorView())
 | 
					      $this->formErrors = id(new PHUIInfoView())
 | 
				
			||||||
        ->setTitle($title)
 | 
					        ->setTitle($title)
 | 
				
			||||||
        ->setErrors($errors);
 | 
					        ->setErrors($errors);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -105,15 +105,15 @@ final class PHUIObjectBoxView extends AphrontView {
 | 
				
			|||||||
      $text = pht('Changes saved.');
 | 
					      $text = pht('Changes saved.');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if ($saved) {
 | 
					    if ($saved) {
 | 
				
			||||||
      $save = id(new PHUIErrorView())
 | 
					      $save = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
 | 
				
			||||||
        ->appendChild($text);
 | 
					        ->appendChild($text);
 | 
				
			||||||
      $this->formSaved = $save;
 | 
					      $this->formSaved = $save;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return $this;
 | 
					    return $this;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function setErrorView(PHUIErrorView $view) {
 | 
					  public function setErrorView(PHUIInfoView $view) {
 | 
				
			||||||
    $this->errorView = $view;
 | 
					    $this->errorView = $view;
 | 
				
			||||||
    return $this;
 | 
					    return $this;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -192,7 +192,7 @@ final class PHUIObjectBoxView extends AphrontView {
 | 
				
			|||||||
        $messages[] = $error->getMessage();
 | 
					        $messages[] = $error->getMessage();
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      if ($messages) {
 | 
					      if ($messages) {
 | 
				
			||||||
        $exception_errors = id(new PHUIErrorView())
 | 
					        $exception_errors = id(new PHUIInfoView())
 | 
				
			||||||
          ->setErrors($messages);
 | 
					          ->setErrors($messages);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -108,8 +108,8 @@ final class PHUIObjectItemListView extends AphrontTagView {
 | 
				
			|||||||
      $items = null;
 | 
					      $items = null;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      $string = nonempty($this->noDataString, pht('No data.'));
 | 
					      $string = nonempty($this->noDataString, pht('No data.'));
 | 
				
			||||||
      $string = id(new PHUIErrorView())
 | 
					      $string = id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild($string);
 | 
					        ->appendChild($string);
 | 
				
			||||||
      $items = phutil_tag(
 | 
					      $items = phutil_tag(
 | 
				
			||||||
        'li',
 | 
					        'li',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,8 @@ final class PHUIPinboardView extends AphrontView {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (!$this->items) {
 | 
					    if (!$this->items) {
 | 
				
			||||||
      $string = nonempty($this->noDataString, pht('No data.'));
 | 
					      $string = nonempty($this->noDataString, pht('No data.'));
 | 
				
			||||||
      return id(new PHUIErrorView())
 | 
					      return id(new PHUIInfoView())
 | 
				
			||||||
        ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
 | 
					        ->setSeverity(PHUIInfoView::SEVERITY_NODATA)
 | 
				
			||||||
        ->appendChild($string)
 | 
					        ->appendChild($string)
 | 
				
			||||||
        ->render();
 | 
					        ->render();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@ final class PHUICalendarMonthView extends AphrontView {
 | 
				
			|||||||
    return $this;
 | 
					    return $this;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public function setErrorView(PHUIErrorView $error) {
 | 
					  public function setErrorView(PHUIInfoView $error) {
 | 
				
			||||||
    $this->error = $error;
 | 
					    $this->error = $error;
 | 
				
			||||||
    return $this;
 | 
					    return $this;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -66,11 +66,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.aphront-multi-column-fluid
 | 
					.aphront-multi-column-fluid
 | 
				
			||||||
.aphront-multi-column-column-outer
 | 
					.aphront-multi-column-column-outer
 | 
				
			||||||
.aphront-multi-column-column .phui-error-view {
 | 
					.aphront-multi-column-column .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.dashboard-panel .phui-object-item-empty .phui-error-view {
 | 
					.dashboard-panel .phui-object-item-empty .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@
 | 
				
			|||||||
  max-width: 600px;
 | 
					  max-width: 600px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phame-post-list .phui-error-view {
 | 
					.phame-post-list .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,7 +48,7 @@
 | 
				
			|||||||
  max-width: 640px;
 | 
					  max-width: 640px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phabricator-project-feed .phui-error-view {
 | 
					.phabricator-project-feed .phui-info-view {
 | 
				
			||||||
  margin: 12px 0;
 | 
					  margin: 12px 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -148,6 +148,6 @@
 | 
				
			|||||||
  border-bottom: 1px solid {$thinblueborder};
 | 
					  border-bottom: 1px solid {$thinblueborder};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-document-view .phui-error-severity-nodata {
 | 
					.phui-document-view .phui-info-severity-nodata {
 | 
				
			||||||
  background-color: {$lightgreybackground};
 | 
					  background-color: {$lightgreybackground};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,151 +1,151 @@
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * @provides phui-error-view-css
 | 
					 * @provides phui-info-view-css
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view {
 | 
					.phui-info-view {
 | 
				
			||||||
  border-style: solid;
 | 
					  border-style: solid;
 | 
				
			||||||
  border-left-width: 4px;
 | 
					  border-left-width: 4px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view {
 | 
					.phui-info-view {
 | 
				
			||||||
  margin: 16px;
 | 
					  margin: 16px;
 | 
				
			||||||
  padding: 12px;
 | 
					  padding: 12px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.device-phone .phui-error-view {
 | 
					.device-phone .phui-info-view {
 | 
				
			||||||
  margin: 8px;
 | 
					  margin: 8px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view .phui-form-view {
 | 
					.phui-info-view .phui-form-view {
 | 
				
			||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view-body {
 | 
					.phui-info-view-body {
 | 
				
			||||||
  line-height: 1.45em;
 | 
					  line-height: 1.45em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view-actions {
 | 
					.phui-info-view-actions {
 | 
				
			||||||
  margin-top: -3px;
 | 
					  margin-top: -3px;
 | 
				
			||||||
  margin-bottom: -4px;
 | 
					  margin-bottom: -4px;
 | 
				
			||||||
  float: right;
 | 
					  float: right;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view-head + .phui-error-view-body {
 | 
					.phui-info-view-head + .phui-info-view-body {
 | 
				
			||||||
  padding-top: 4px;
 | 
					  padding-top: 4px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.aphront-panel-plain .phui-error-view {
 | 
					.aphront-panel-plain .phui-info-view {
 | 
				
			||||||
  margin-left: 0;
 | 
					  margin-left: 0;
 | 
				
			||||||
  margin-right: 0;
 | 
					  margin-right: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
h1.phui-error-view-head {
 | 
					h1.phui-info-view-head {
 | 
				
			||||||
  font-weight: bold;
 | 
					  font-weight: bold;
 | 
				
			||||||
  font-size: 15px;
 | 
					  font-size: 15px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view-list {
 | 
					.phui-info-view-list {
 | 
				
			||||||
  margin: 0 0 0 16px;
 | 
					  margin: 0 0 0 16px;
 | 
				
			||||||
  list-style: disc;
 | 
					  list-style: disc;
 | 
				
			||||||
  line-height: 1.5em;
 | 
					  line-height: 1.5em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-view .phui-error-view-actions .button:hover {
 | 
					.phui-info-view .phui-info-view-actions .button:hover {
 | 
				
			||||||
  background: #fff;
 | 
					  background: #fff;
 | 
				
			||||||
  box-shadow: none;
 | 
					  box-shadow: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-error,
 | 
					.phui-info-severity-error,
 | 
				
			||||||
.phui-error-severity-error .button {
 | 
					.phui-info-severity-error .button {
 | 
				
			||||||
  border-color: {$red};
 | 
					  border-color: {$red};
 | 
				
			||||||
  background: {$lightred};
 | 
					  background: {$lightred};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-error .button {
 | 
					.phui-info-severity-error .button {
 | 
				
			||||||
  color: {$red};
 | 
					  color: {$red};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-warning,
 | 
					.phui-info-severity-warning,
 | 
				
			||||||
.phui-error-severity-warning .button {
 | 
					.phui-info-severity-warning .button {
 | 
				
			||||||
  border-color: {$yellow};
 | 
					  border-color: {$yellow};
 | 
				
			||||||
  background: {$lightyellow};
 | 
					  background: {$lightyellow};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-warning .button {
 | 
					.phui-info-severity-warning .button {
 | 
				
			||||||
  color: #bc7837;
 | 
					  color: #bc7837;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-notice,
 | 
					.phui-info-severity-notice,
 | 
				
			||||||
.phui-error-severity-notice .button {
 | 
					.phui-info-severity-notice .button {
 | 
				
			||||||
  border-color: {$blue};
 | 
					  border-color: {$blue};
 | 
				
			||||||
  background: {$lightblue};
 | 
					  background: {$lightblue};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-notice .button {
 | 
					.phui-info-severity-notice .button {
 | 
				
			||||||
  color: {$blue};
 | 
					  color: {$blue};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-nodata,
 | 
					.phui-info-severity-nodata,
 | 
				
			||||||
.phui-error-severity-nodata .button {
 | 
					.phui-info-severity-nodata .button {
 | 
				
			||||||
  border-color: {$lightgreyborder};
 | 
					  border-color: {$lightgreyborder};
 | 
				
			||||||
  background: #fff;
 | 
					  background: #fff;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-nodata .button {
 | 
					.phui-info-severity-nodata .button {
 | 
				
			||||||
  color: {$greytext};
 | 
					  color: {$greytext};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-success,
 | 
					.phui-info-severity-success,
 | 
				
			||||||
.phui-error-severity-success .button {
 | 
					.phui-info-severity-success .button {
 | 
				
			||||||
  border-color: {$green};
 | 
					  border-color: {$green};
 | 
				
			||||||
  background: {$lightgreen};
 | 
					  background: {$lightgreen};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-error-severity-success .button {
 | 
					.phui-info-severity-success .button {
 | 
				
			||||||
  color: {$green};
 | 
					  color: {$green};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.legalpad .phui-error-view {
 | 
					.legalpad .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
  border-width: 0 0 1px 0;
 | 
					  border-width: 0 0 1px 0;
 | 
				
			||||||
  border-bottom: 1px solid {$lightblueborder};
 | 
					  border-bottom: 1px solid {$lightblueborder};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.aphront-dialog-body .phui-error-view {
 | 
					.aphront-dialog-body .phui-info-view {
 | 
				
			||||||
  margin: -16px -16px 16px -16px;
 | 
					  margin: -16px -16px 16px -16px;
 | 
				
			||||||
  border-width: 0 0 1px 0;
 | 
					  border-width: 0 0 1px 0;
 | 
				
			||||||
  border-bottom: 1px solid {$lightblueborder};
 | 
					  border-bottom: 1px solid {$lightblueborder};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.aphront-dialog-body .phui-error-view .phui-error-view-list {
 | 
					.aphront-dialog-body .phui-info-view .phui-info-view-list {
 | 
				
			||||||
  margin: 0 0 0 16px;
 | 
					  margin: 0 0 0 16px;
 | 
				
			||||||
  list-style: disc;
 | 
					  list-style: disc;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-error-severity-error,
 | 
					.phui-object-box .phui-info-severity-error,
 | 
				
			||||||
.aphront-dialog-body .phui-error-severity-error {
 | 
					.aphront-dialog-body .phui-info-severity-error {
 | 
				
			||||||
  color: {$red};
 | 
					  color: {$red};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-error-severity-warning,
 | 
					.phui-object-box .phui-info-severity-warning,
 | 
				
			||||||
.aphront-dialog-body .phui-error-severity-warning {
 | 
					.aphront-dialog-body .phui-info-severity-warning {
 | 
				
			||||||
  color: #bc7837;
 | 
					  color: #bc7837;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-error-severity-notice,
 | 
					.phui-object-box .phui-info-severity-notice,
 | 
				
			||||||
.aphront-dialog-body .phui-error-severity-notice {
 | 
					.aphront-dialog-body .phui-info-severity-notice {
 | 
				
			||||||
  color: {$blue};
 | 
					  color: {$blue};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-error-severity-success,
 | 
					.phui-object-box .phui-info-severity-success,
 | 
				
			||||||
.aphront-dialog-body .phui-error-severity-success {
 | 
					.aphront-dialog-body .phui-info-severity-success {
 | 
				
			||||||
  color: {$green};
 | 
					  color: {$green};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-crumbs-view + .phui-error-view {
 | 
					.phui-crumbs-view + .phui-info-view {
 | 
				
			||||||
  margin-top: 0;
 | 
					  margin-top: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-crumbs-view.phui-crumbs-border + .phui-error-view {
 | 
					.phui-crumbs-view.phui-crumbs-border + .phui-info-view {
 | 
				
			||||||
  margin-top: 16px;
 | 
					  margin-top: 16px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@ div.phui-object-box.phui-object-box-flush {
 | 
				
			|||||||
  padding: 8px 0;
 | 
					  padding: 8px 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-header-shell + .phui-error-view {
 | 
					.phui-object-box .phui-header-shell + .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
  border-width: 0;
 | 
					  border-width: 0;
 | 
				
			||||||
  border-bottom: 1px solid {$lightblueborder};
 | 
					  border-bottom: 1px solid {$lightblueborder};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,11 +24,11 @@ ul.phui-object-item-list-view {
 | 
				
			|||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-item-list-view .phui-error-view {
 | 
					.phui-object-item-list-view .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-box .phui-object-item-list-view .phui-error-view {
 | 
					.phui-object-box .phui-object-item-list-view .phui-info-view {
 | 
				
			||||||
  margin: 4px 0;
 | 
					  margin: 4px 0;
 | 
				
			||||||
  color: {$greytext};
 | 
					  color: {$greytext};
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
@@ -636,7 +636,7 @@ ul.phui-object-item-icons {
 | 
				
			|||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.phui-object-list-states .phui-error-view {
 | 
					.phui-object-list-states .phui-info-view {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -675,7 +675,7 @@ ul.phui-object-item-icons {
 | 
				
			|||||||
  -webkit-font-smoothing: antialiased;
 | 
					  -webkit-font-smoothing: antialiased;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.dashboard-panel .phui-object-item-empty .phui-error-view {
 | 
					.dashboard-panel .phui-object-item-empty .phui-info-view {
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
  border-bottom: 1px solid {$thinblueborder};
 | 
					  border-bottom: 1px solid {$thinblueborder};
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user