1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Update Settings to use TwoColumn fixed layout

Summary: Simplifies the page, adds base support for PHUITwoColumn fixed from Instances (which I'll delete css there).

Test Plan:
click on every settings page, UI seems in tact, check mobile, desktop, mobile menus.

{F5102572}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18436
This commit is contained in:
Chad Little 2017-08-16 20:12:19 -07:00
parent 5019960b61
commit dc10bb1f49
5 changed files with 65 additions and 15 deletions

View file

@ -9,7 +9,7 @@ return array(
'names' => array( 'names' => array(
'conpherence.pkg.css' => 'e68cf1fa', 'conpherence.pkg.css' => 'e68cf1fa',
'conpherence.pkg.js' => 'b5b51108', 'conpherence.pkg.js' => 'b5b51108',
'core.pkg.css' => 'dd8bcea0', 'core.pkg.css' => 'cf953851',
'core.pkg.js' => '5d80e0db', 'core.pkg.js' => '5d80e0db',
'darkconsole.pkg.js' => '1f9a31bc', 'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '45951e9e', 'differential.pkg.css' => '45951e9e',
@ -178,7 +178,7 @@ return array(
'rsrc/css/phui/phui-status.css' => 'd5263e49', 'rsrc/css/phui/phui-status.css' => 'd5263e49',
'rsrc/css/phui/phui-tag-view.css' => 'b4719c50', 'rsrc/css/phui/phui-tag-view.css' => 'b4719c50',
'rsrc/css/phui/phui-timeline-view.css' => 'f21db7ca', 'rsrc/css/phui/phui-timeline-view.css' => 'f21db7ca',
'rsrc/css/phui/phui-two-column-view.css' => '81b0f3ce', 'rsrc/css/phui/phui-two-column-view.css' => '76dcd3d4',
'rsrc/css/phui/workboards/phui-workboard-color.css' => '783cdff5', 'rsrc/css/phui/workboards/phui-workboard-color.css' => '783cdff5',
'rsrc/css/phui/workboards/phui-workboard.css' => '3bc85455', 'rsrc/css/phui/workboards/phui-workboard.css' => '3bc85455',
'rsrc/css/phui/workboards/phui-workcard.css' => 'cca5fa92', 'rsrc/css/phui/workboards/phui-workcard.css' => 'cca5fa92',
@ -874,7 +874,7 @@ return array(
'phui-tag-view-css' => 'b4719c50', 'phui-tag-view-css' => 'b4719c50',
'phui-theme-css' => '9f261c6b', 'phui-theme-css' => '9f261c6b',
'phui-timeline-view-css' => 'f21db7ca', 'phui-timeline-view-css' => 'f21db7ca',
'phui-two-column-view-css' => '81b0f3ce', 'phui-two-column-view-css' => '76dcd3d4',
'phui-workboard-color-css' => '783cdff5', 'phui-workboard-color-css' => '783cdff5',
'phui-workboard-view-css' => '3bc85455', 'phui-workboard-view-css' => '3bc85455',
'phui-workcard-view-css' => 'cca5fa92', 'phui-workcard-view-css' => 'cca5fa92',

View file

@ -121,18 +121,18 @@ final class PhabricatorSettingsMainController
} }
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setHeader($header_text) ->setHeader($header_text);
->setHeaderIcon('fa-pencil');
$title = $panel->getPanelName(); $title = $panel->getPanelName();
$view = id(new PHUITwoColumnView()) $view = id(new PHUITwoColumnView())
->setHeader($header) ->setHeader($header)
->setFooter($response); ->setFixed(true)
->setNavigation($nav)
->setMainColumn($response);
return $this->newPage() return $this->newPage()
->setTitle($title) ->setTitle($title)
->setNavigation($nav)
->setCrumbs($crumbs) ->setCrumbs($crumbs)
->appendChild($view); ->appendChild($view);

View file

@ -6,7 +6,7 @@ final class PhabricatorConpherencePreferencesSettingsPanel
const PANELKEY = 'conpherence'; const PANELKEY = 'conpherence';
public function getPanelName() { public function getPanelName() {
return pht('Conpherence Preferences'); return pht('Conpherence');
} }
public function getPanelGroupKey() { public function getPanelGroupKey() {

View file

@ -1141,10 +1141,8 @@ abstract class PhabricatorEditEngine
if ($this->getIsCreate()) { if ($this->getIsCreate()) {
$header_text = $this->getFormHeaderText($object); $header_text = $this->getFormHeaderText($object);
$header_icon = 'fa-plus-square';
} else { } else {
$header_text = $this->getObjectEditTitleText($object); $header_text = $this->getObjectEditTitleText($object);
$header_icon = 'fa-pencil';
} }
$show_preview = !$request->isAjax(); $show_preview = !$request->isAjax();
@ -1185,8 +1183,7 @@ abstract class PhabricatorEditEngine
$crumbs = $this->buildCrumbs($object, $final = true); $crumbs = $this->buildCrumbs($object, $final = true);
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setHeader($header_text) ->setHeader($header_text);
->setHeaderIcon($header_icon);
$crumbs->setBorder(true); $crumbs->setBorder(true);
if ($action_button) { if ($action_button) {
@ -1216,8 +1213,6 @@ abstract class PhabricatorEditEngine
$view->setHeader($header); $view->setHeader($header);
} }
$view->setFooter($content);
$page = $controller->newPage() $page = $controller->newPage()
->setTitle($header_text) ->setTitle($header_text)
->setCrumbs($crumbs) ->setCrumbs($crumbs)
@ -1225,7 +1220,11 @@ abstract class PhabricatorEditEngine
$navigation = $this->getNavigation(); $navigation = $this->getNavigation();
if ($navigation) { if ($navigation) {
$page->setNavigation($navigation); $view->setFixed(true);
$view->setNavigation($navigation);
$view->setMainColumn($content);
} else {
$view->setFooter($content);
} }
return $page; return $page;

View file

@ -244,3 +244,54 @@
.phui-document-view { .phui-document-view {
margin: 0 0 20px 0; margin: 0 0 20px 0;
} }
/*- Fixed Styles with Navigation -------------------------------------------- */
.phui-two-column-fixed.phui-two-column-view .phui-two-column-header {
background: transparent;
border: none;
margin-bottom: 0;
}
.phui-two-column-fixed.phui-two-column-view .phui-side-column
.phui-box-border {
background: transparent;
border: none;
padding: 0;
width: 180px;
}
.device-desktop
.phui-two-column-fixed.phui-two-column-view.phui-side-column-left
.phui-side-column {
width: 200px;
}
.device-desktop
.phui-two-column-fixed.phui-two-column-view.phui-side-column-left
.phui-main-column {
width: calc(100% - 200px)
}
.phui-two-column-fixed.phui-two-column-view .phui-basic-nav
.phabricator-side-menu {
background: transparent;
}
.phui-two-column-fixed.phui-two-column-view
.phui-basic-nav .phabricator-side-menu .phui-list-item-selected {
border-radius: 3px;
background-color: #f5f9ff;
border: 1px solid {$sky};
padding-left: 3px;
}
.phui-two-column-fixed.phui-two-column-view .phui-basic-nav
.phabricator-side-menu .phui-list-item-href {
border-radius: 3px;
}
.phui-two-column-fixed.phui-two-column-view .phui-header-action-links
.phui-mobile-menu {
display: block;
}