1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Remove AphrontMiniPanelView

Summary: Swaps out AphrontMiniPanelView usage with PHUIErrorView. Only used on homepage.

Test Plan:
Grepped for usage, only home. Revisit a new home, see modern componant.

{F310934}

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11842
This commit is contained in:
Chad Little 2015-02-20 16:00:39 -08:00
parent 3304d7a341
commit 7c9e73b31d
5 changed files with 5 additions and 31 deletions

View file

@ -7,7 +7,7 @@
*/
return array(
'names' => array(
'core.pkg.css' => '26a65a65',
'core.pkg.css' => 'd31eec13',
'core.pkg.js' => '23d653bb',
'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '380f07e5',
@ -25,7 +25,7 @@ return array(
'rsrc/css/aphront/multi-column.css' => '41a848c0',
'rsrc/css/aphront/notification.css' => '9c279160',
'rsrc/css/aphront/pager-view.css' => '2e3539af',
'rsrc/css/aphront/panel-view.css' => 'a5fee23a',
'rsrc/css/aphront/panel-view.css' => '7e0c3a56',
'rsrc/css/aphront/phabricator-nav-view.css' => '7aeaf435',
'rsrc/css/aphront/table-view.css' => 'b22b7216',
'rsrc/css/aphront/tokenizer.css' => '82ce2142',
@ -505,7 +505,7 @@ return array(
'aphront-list-filter-view-css' => '2ae43867',
'aphront-multi-column-view-css' => '41a848c0',
'aphront-pager-view-css' => '2e3539af',
'aphront-panel-view-css' => 'a5fee23a',
'aphront-panel-view-css' => '7e0c3a56',
'aphront-table-view-css' => 'b22b7216',
'aphront-tokenizer-control-css' => '82ce2142',
'aphront-tooltip-css' => '4099b97e',

View file

@ -144,7 +144,6 @@ phutil_register_library_map(array(
'AphrontJavelinView' => 'view/AphrontJavelinView.php',
'AphrontKeyboardShortcutsAvailableView' => 'view/widget/AphrontKeyboardShortcutsAvailableView.php',
'AphrontListFilterView' => 'view/layout/AphrontListFilterView.php',
'AphrontMiniPanelView' => 'view/layout/AphrontMiniPanelView.php',
'AphrontMoreView' => 'view/layout/AphrontMoreView.php',
'AphrontMultiColumnView' => 'view/layout/AphrontMultiColumnView.php',
'AphrontMySQLDatabaseConnectionTestCase' => 'infrastructure/storage/__tests__/AphrontMySQLDatabaseConnectionTestCase.php',
@ -3293,7 +3292,6 @@ phutil_register_library_map(array(
'AphrontJavelinView' => 'AphrontView',
'AphrontKeyboardShortcutsAvailableView' => 'AphrontView',
'AphrontListFilterView' => 'AphrontView',
'AphrontMiniPanelView' => 'AphrontView',
'AphrontMoreView' => 'AphrontView',
'AphrontMultiColumnView' => 'AphrontView',
'AphrontMySQLDatabaseConnectionTestCase' => 'PhabricatorTestCase',

View file

@ -327,7 +327,8 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
}
private function renderMiniPanel($title, $body) {
$panel = new AphrontMiniPanelView();
$panel = new PHUIErrorView();
$panel->setSeverity(PHUIErrorView::SEVERITY_NODATA);
$panel->appendChild(
phutil_tag(
'p',

View file

@ -1,12 +0,0 @@
<?php
final class AphrontMiniPanelView extends AphrontView {
public function render() {
return phutil_tag(
'div',
array('class' => 'aphront-mini-panel-view'),
$this->renderChildren());
}
}

View file

@ -118,16 +118,3 @@
background: #ccffcc;
border-color: #669966;
}
.aphront-mini-panel-view {
background: #fff;
padding: 10px;
margin: 16px 16px 0 16px;
border: 1px solid {$lightgreyborder};
border-bottom: 1px solid {$greyborder};
}
.aphront-mini-panel-view p {
font-size: 12px;
color: {$greytext};
}