1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Remove AphrontTwoColumnView

Summary: Never used.

Test Plan: grep

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13814
This commit is contained in:
Chad Little 2015-08-06 12:11:58 -07:00
parent 50e084dcda
commit cd0402dce2
5 changed files with 0 additions and 149 deletions

View file

@ -28,7 +28,6 @@ return array(
'rsrc/css/aphront/table-view.css' => 'e3632cc9',
'rsrc/css/aphront/tokenizer.css' => '04875312',
'rsrc/css/aphront/tooltip.css' => '7672b60f',
'rsrc/css/aphront/two-column.css' => '16ab3ad2',
'rsrc/css/aphront/typeahead-browse.css' => 'd8581d2c',
'rsrc/css/aphront/typeahead.css' => '0e403212',
'rsrc/css/application/almanac/almanac.css' => 'dbb9b3af',
@ -500,7 +499,6 @@ return array(
'aphront-table-view-css' => 'e3632cc9',
'aphront-tokenizer-control-css' => '04875312',
'aphront-tooltip-css' => '7672b60f',
'aphront-two-column-view-css' => '16ab3ad2',
'aphront-typeahead-control-css' => '0e403212',
'auth-css' => '0877ed6e',
'bulk-job-css' => 'df9c1d4a',

View file

@ -165,7 +165,6 @@ phutil_register_library_map(array(
'AphrontTableView' => 'view/control/AphrontTableView.php',
'AphrontTagView' => 'view/AphrontTagView.php',
'AphrontTokenizerTemplateView' => 'view/control/AphrontTokenizerTemplateView.php',
'AphrontTwoColumnView' => 'view/layout/AphrontTwoColumnView.php',
'AphrontTypeaheadTemplateView' => 'view/control/AphrontTypeaheadTemplateView.php',
'AphrontURIMapper' => 'aphront/AphrontURIMapper.php',
'AphrontUnhandledExceptionResponse' => 'aphront/response/AphrontUnhandledExceptionResponse.php',
@ -2986,7 +2985,6 @@ phutil_register_library_map(array(
'PhabricatorTrivialTestCase' => 'infrastructure/testing/__tests__/PhabricatorTrivialTestCase.php',
'PhabricatorTwitchAuthProvider' => 'applications/auth/provider/PhabricatorTwitchAuthProvider.php',
'PhabricatorTwitterAuthProvider' => 'applications/auth/provider/PhabricatorTwitterAuthProvider.php',
'PhabricatorTwoColumnUIExample' => 'applications/uiexample/examples/PhabricatorTwoColumnUIExample.php',
'PhabricatorTypeaheadApplication' => 'applications/typeahead/application/PhabricatorTypeaheadApplication.php',
'PhabricatorTypeaheadCompositeDatasource' => 'applications/typeahead/datasource/PhabricatorTypeaheadCompositeDatasource.php',
'PhabricatorTypeaheadDatasource' => 'applications/typeahead/datasource/PhabricatorTypeaheadDatasource.php',
@ -3767,7 +3765,6 @@ phutil_register_library_map(array(
'AphrontTableView' => 'AphrontView',
'AphrontTagView' => 'AphrontView',
'AphrontTokenizerTemplateView' => 'AphrontView',
'AphrontTwoColumnView' => 'AphrontView',
'AphrontTypeaheadTemplateView' => 'AphrontView',
'AphrontURIMapper' => 'Phobject',
'AphrontUnhandledExceptionResponse' => 'AphrontStandaloneHTMLResponse',
@ -7048,7 +7045,6 @@ phutil_register_library_map(array(
'PhabricatorTrivialTestCase' => 'PhabricatorTestCase',
'PhabricatorTwitchAuthProvider' => 'PhabricatorOAuth2AuthProvider',
'PhabricatorTwitterAuthProvider' => 'PhabricatorOAuth1AuthProvider',
'PhabricatorTwoColumnUIExample' => 'PhabricatorUIExample',
'PhabricatorTypeaheadApplication' => 'PhabricatorApplication',
'PhabricatorTypeaheadCompositeDatasource' => 'PhabricatorTypeaheadDatasource',
'PhabricatorTypeaheadDatasource' => 'Phobject',

View file

@ -1,36 +0,0 @@
<?php
final class PhabricatorTwoColumnUIExample extends PhabricatorUIExample {
public function getName() {
return pht('Two Column Layout');
}
public function getDescription() {
return pht('Two Column mobile friendly layout');
}
public function renderExample() {
$main = phutil_tag(
'div',
array(
'style' => 'border: 1px solid blue; padding: 20px;',
),
'Mary, mary quite contrary.');
$side = phutil_tag(
'div',
array(
'style' => 'border: 1px solid red; padding: 20px;',
),
'How does your garden grow?');
$content = id(new AphrontTwoColumnView())
->setMainColumn($main)
->setSideColumn($side);
return $content;
}
}

View file

@ -1,66 +0,0 @@
<?php
final class AphrontTwoColumnView extends AphrontView {
private $mainColumn;
private $sideColumn;
private $centered = false;
private $padding = true;
public function setMainColumn($main) {
$this->mainColumn = $main;
return $this;
}
public function setSideColumn($side) {
$this->sideColumn = $side;
return $this;
}
public function setCentered($centered) {
$this->centered = $centered;
return $this;
}
public function setNoPadding($padding) {
$this->padding = $padding;
return $this;
}
public function render() {
require_celerity_resource('aphront-two-column-view-css');
$main = phutil_tag(
'div',
array(
'class' => 'aphront-main-column',
),
$this->mainColumn);
$side = phutil_tag(
'div',
array(
'class' => 'aphront-side-column',
),
$this->sideColumn);
$classes = array('aphront-two-column');
if ($this->centered) {
$classes = array('aphront-two-column-centered');
}
if ($this->padding) {
$classes[] = 'aphront-two-column-padded';
}
return phutil_tag(
'div',
array(
'class' => implode(' ', $classes),
),
array(
$main,
$side,
));
}
}

View file

@ -1,41 +0,0 @@
/**
* @provides aphront-two-column-view-css
*/
.aphront-two-column {
position: relative;
}
.device-desktop .aphront-two-column.aphront-two-column-padded {
margin: 20px;
}
.device-desktop .aphront-two-column .aphront-main-column {
margin-right: 300px;
}
.device-desktop .aphront-two-column .aphront-side-column {
width: 300px;
position: absolute;
top: 0;
right: 0;
}
.device-desktop .aphront-two-column-centered {
width: 980px;
margin: 0 auto;
}
.device-desktop .aphront-two-column-centered .aphront-main-column {
float: left;
width: 820px;
}
.device-desktop .aphront-two-column-centered .aphront-side-column {
width: 160px;
float: right;
}
.device-phone .aphront-two-column.aphront-two-column-padded {
margin: 10px;
}