mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-08 18:34:47 +01:00
Use ObjectBoxView for Config pages
Summary: Doing to start to try to remove all the 'purple' PHUIHeaders around Phabricator and see what's left after. Test Plan: View each page {F171007} Reviewers: epriestley Reviewed By: epriestley Differential Revision: https://secure.phabricator.com/D9750
This commit is contained in:
parent
99b839948c
commit
7ec09d3924
6 changed files with 25 additions and 19 deletions
|
@ -7,7 +7,7 @@
|
||||||
return array(
|
return array(
|
||||||
'names' =>
|
'names' =>
|
||||||
array(
|
array(
|
||||||
'core.pkg.css' => '4b1115ac',
|
'core.pkg.css' => '2151ff22',
|
||||||
'core.pkg.js' => '834b4eda',
|
'core.pkg.js' => '834b4eda',
|
||||||
'darkconsole.pkg.js' => 'df001cab',
|
'darkconsole.pkg.js' => 'df001cab',
|
||||||
'differential.pkg.css' => '4a93db37',
|
'differential.pkg.css' => '4a93db37',
|
||||||
|
@ -129,7 +129,7 @@ return array(
|
||||||
'rsrc/css/phui/phui-fontkit.css' => '8246e56e',
|
'rsrc/css/phui/phui-fontkit.css' => '8246e56e',
|
||||||
'rsrc/css/phui/phui-form-view.css' => 'ebac1b1d',
|
'rsrc/css/phui/phui-form-view.css' => 'ebac1b1d',
|
||||||
'rsrc/css/phui/phui-form.css' => 'b78ec020',
|
'rsrc/css/phui/phui-form.css' => 'b78ec020',
|
||||||
'rsrc/css/phui/phui-header-view.css' => 'a2071a67',
|
'rsrc/css/phui/phui-header-view.css' => '39594ac0',
|
||||||
'rsrc/css/phui/phui-icon.css' => 'd8526aa1',
|
'rsrc/css/phui/phui-icon.css' => 'd8526aa1',
|
||||||
'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',
|
||||||
|
@ -775,7 +775,7 @@ return array(
|
||||||
'phui-fontkit-css' => '8246e56e',
|
'phui-fontkit-css' => '8246e56e',
|
||||||
'phui-form-css' => 'b78ec020',
|
'phui-form-css' => 'b78ec020',
|
||||||
'phui-form-view-css' => 'ebac1b1d',
|
'phui-form-view-css' => 'ebac1b1d',
|
||||||
'phui-header-view-css' => 'a2071a67',
|
'phui-header-view-css' => '39594ac0',
|
||||||
'phui-icon-view-css' => 'd8526aa1',
|
'phui-icon-view-css' => 'd8526aa1',
|
||||||
'phui-image-mask-css' => '5a8b09c8',
|
'phui-image-mask-css' => '5a8b09c8',
|
||||||
'phui-info-panel-css' => '27ea50a1',
|
'phui-info-panel-css' => '27ea50a1',
|
||||||
|
|
|
@ -39,7 +39,6 @@ final class PhabricatorConfigAllController
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$table = id(new AphrontTableView($rows))
|
$table = id(new AphrontTableView($rows))
|
||||||
->setDeviceReadyTable(true)
|
|
||||||
->setColumnClasses(
|
->setColumnClasses(
|
||||||
array(
|
array(
|
||||||
'',
|
'',
|
||||||
|
@ -58,9 +57,9 @@ final class PhabricatorConfigAllController
|
||||||
->buildApplicationCrumbs()
|
->buildApplicationCrumbs()
|
||||||
->addTextCrumb($title);
|
->addTextCrumb($title);
|
||||||
|
|
||||||
$panel = new AphrontPanelView();
|
$panel = new PHUIObjectBoxView();
|
||||||
|
$panel->setHeaderText(pht('Current Settings'));
|
||||||
$panel->appendChild($table);
|
$panel->appendChild($table);
|
||||||
$panel->setNoBackground();
|
|
||||||
|
|
||||||
$versions = $this->loadVersions();
|
$versions = $this->loadVersions();
|
||||||
|
|
||||||
|
@ -71,7 +70,7 @@ final class PhabricatorConfigAllController
|
||||||
}
|
}
|
||||||
|
|
||||||
$object_box = id(new PHUIObjectBoxView())
|
$object_box = id(new PHUIObjectBoxView())
|
||||||
->setHeaderText(pht('Current Settings'))
|
->setHeaderText(pht('Current Version'))
|
||||||
->addPropertyList($version_property_list);
|
->addPropertyList($version_property_list);
|
||||||
|
|
||||||
$phabricator_root = dirname(phutil_get_library_root('phabricator'));
|
$phabricator_root = dirname(phutil_get_library_root('phabricator'));
|
||||||
|
|
|
@ -20,12 +20,12 @@ final class PhabricatorConfigGroupController
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = pht('%s Configuration', $options->getName());
|
$title = pht('%s Configuration', $options->getName());
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
|
||||||
->setHeader($title);
|
|
||||||
|
|
||||||
$list = $this->buildOptionList($options->getOptions());
|
$list = $this->buildOptionList($options->getOptions());
|
||||||
|
|
||||||
|
$box = id(new PHUIObjectBoxView())
|
||||||
|
->setHeaderText($title)
|
||||||
|
->appendChild($list);
|
||||||
|
|
||||||
$crumbs = $this
|
$crumbs = $this
|
||||||
->buildApplicationCrumbs()
|
->buildApplicationCrumbs()
|
||||||
->addTextCrumb(pht('Config'), $this->getApplicationURI())
|
->addTextCrumb(pht('Config'), $this->getApplicationURI())
|
||||||
|
@ -34,8 +34,7 @@ final class PhabricatorConfigGroupController
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$header,
|
$box,
|
||||||
$list,
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
|
|
|
@ -16,14 +16,15 @@ final class PhabricatorConfigIssueListController
|
||||||
|
|
||||||
$list = $this->buildIssueList($issues);
|
$list = $this->buildIssueList($issues);
|
||||||
$list->setNoDataString(pht('There are no open setup issues.'));
|
$list->setNoDataString(pht('There are no open setup issues.'));
|
||||||
|
$list->setStackable(true);
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeader(pht('Open Phabricator Setup Issues'));
|
->setHeaderText(pht('Open Phabricator Setup Issues'))
|
||||||
|
->appendChild($list);
|
||||||
|
|
||||||
$nav->appendChild(
|
$nav->appendChild(
|
||||||
array(
|
array(
|
||||||
$header,
|
$box,
|
||||||
$list,
|
|
||||||
));
|
));
|
||||||
|
|
||||||
$title = pht('Setup Issues');
|
$title = pht('Setup Issues');
|
||||||
|
|
|
@ -15,7 +15,14 @@ final class PhabricatorConfigListController
|
||||||
|
|
||||||
$title = pht('Phabricator Configuration');
|
$title = pht('Phabricator Configuration');
|
||||||
|
|
||||||
$nav->appendChild($list);
|
$box = id(new PHUIObjectBoxView())
|
||||||
|
->setHeaderText($title)
|
||||||
|
->appendChild($list);
|
||||||
|
|
||||||
|
$nav->appendChild(
|
||||||
|
array(
|
||||||
|
$box
|
||||||
|
));
|
||||||
|
|
||||||
$crumbs = $this
|
$crumbs = $this
|
||||||
->buildApplicationCrumbs()
|
->buildApplicationCrumbs()
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
background-color: #e0e3ec;
|
background-color: #e0e3ec;
|
||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: #c0c5d1;
|
border-color: {$hovergrey};
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue