Skip to content

Commit 7ad3147

Browse files
author
epriestley
committedJan 9, 2013
Remove all older-style navs
Summary: Move all navs to use the newer-style, darker, textured look. I'm //pretty// sure this doesn't break anything. Test Plan: Looked at a bunch of apps. Reviewers: btrahan, chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D4376
1 parent abee691 commit 7ad3147

File tree

5 files changed

+74
-132
lines changed

5 files changed

+74
-132
lines changed
 

‎scripts/celerity_mapper.php

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
'aphront-dialog-view-css',
6767
'aphront-form-view-css',
6868
'aphront-panel-view-css',
69-
'aphront-side-nav-view-css',
7069
'aphront-table-view-css',
7170
'aphront-crumbs-view-css',
7271
'aphront-tokenizer-control-css',

‎src/__celerity_resource_map__.php

+73-84
Original file line numberDiff line numberDiff line change
@@ -679,15 +679,6 @@
679679
),
680680
'disk' => '/rsrc/css/aphront/request-failure-view.css',
681681
),
682-
'aphront-side-nav-view-css' =>
683-
array(
684-
'uri' => '/res/f697dc9b/rsrc/css/aphront/side-nav-view.css',
685-
'type' => 'css',
686-
'requires' =>
687-
array(
688-
),
689-
'disk' => '/rsrc/css/aphront/side-nav-view.css',
690-
),
691682
'aphront-table-view-css' =>
692683
array(
693684
'uri' => '/res/94d76d56/rsrc/css/aphront/table-view.css',
@@ -3241,7 +3232,7 @@
32413232
), array(
32423233
'packages' =>
32433234
array(
3244-
'3c048ceb' =>
3235+
'd169975b' =>
32453236
array(
32463237
'name' => 'core.pkg.css',
32473238
'symbols' =>
@@ -3253,41 +3244,40 @@
32533244
4 => 'aphront-dialog-view-css',
32543245
5 => 'aphront-form-view-css',
32553246
6 => 'aphront-panel-view-css',
3256-
7 => 'aphront-side-nav-view-css',
3257-
8 => 'aphront-table-view-css',
3258-
9 => 'aphront-crumbs-view-css',
3259-
10 => 'aphront-tokenizer-control-css',
3260-
11 => 'aphront-typeahead-control-css',
3261-
12 => 'aphront-list-filter-view-css',
3262-
13 => 'phabricator-directory-css',
3263-
14 => 'phabricator-jump-nav',
3264-
15 => 'phabricator-app-buttons-css',
3265-
16 => 'phabricator-remarkup-css',
3266-
17 => 'syntax-highlighting-css',
3267-
18 => 'aphront-pager-view-css',
3268-
19 => 'phabricator-transaction-view-css',
3269-
20 => 'aphront-tooltip-css',
3270-
21 => 'aphront-headsup-view-css',
3271-
22 => 'phabricator-flag-css',
3272-
23 => 'aphront-error-view-css',
3273-
24 => 'sprite-icon-css',
3274-
25 => 'sprite-gradient-css',
3275-
26 => 'sprite-menu-css',
3276-
27 => 'sprite-apps-large-css',
3277-
28 => 'phabricator-main-menu-view',
3278-
29 => 'phabricator-notification-css',
3279-
30 => 'phabricator-notification-menu-css',
3280-
31 => 'lightbox-attachment-css',
3281-
32 => 'phabricator-header-view-css',
3282-
33 => 'phabricator-form-view-css',
3283-
34 => 'phabricator-filetree-view-css',
3284-
35 => 'phabricator-nav-view-css',
3285-
36 => 'phabricator-side-menu-view-css',
3286-
37 => 'phabricator-crumbs-view-css',
3287-
38 => 'phabricator-object-item-list-view-css',
3288-
39 => 'global-drag-and-drop-css',
3247+
7 => 'aphront-table-view-css',
3248+
8 => 'aphront-crumbs-view-css',
3249+
9 => 'aphront-tokenizer-control-css',
3250+
10 => 'aphront-typeahead-control-css',
3251+
11 => 'aphront-list-filter-view-css',
3252+
12 => 'phabricator-directory-css',
3253+
13 => 'phabricator-jump-nav',
3254+
14 => 'phabricator-app-buttons-css',
3255+
15 => 'phabricator-remarkup-css',
3256+
16 => 'syntax-highlighting-css',
3257+
17 => 'aphront-pager-view-css',
3258+
18 => 'phabricator-transaction-view-css',
3259+
19 => 'aphront-tooltip-css',
3260+
20 => 'aphront-headsup-view-css',
3261+
21 => 'phabricator-flag-css',
3262+
22 => 'aphront-error-view-css',
3263+
23 => 'sprite-icon-css',
3264+
24 => 'sprite-gradient-css',
3265+
25 => 'sprite-menu-css',
3266+
26 => 'sprite-apps-large-css',
3267+
27 => 'phabricator-main-menu-view',
3268+
28 => 'phabricator-notification-css',
3269+
29 => 'phabricator-notification-menu-css',
3270+
30 => 'lightbox-attachment-css',
3271+
31 => 'phabricator-header-view-css',
3272+
32 => 'phabricator-form-view-css',
3273+
33 => 'phabricator-filetree-view-css',
3274+
34 => 'phabricator-nav-view-css',
3275+
35 => 'phabricator-side-menu-view-css',
3276+
36 => 'phabricator-crumbs-view-css',
3277+
37 => 'phabricator-object-item-list-view-css',
3278+
38 => 'global-drag-and-drop-css',
32893279
),
3290-
'uri' => '/res/pkg/3c048ceb/core.pkg.css',
3280+
'uri' => '/res/pkg/d169975b/core.pkg.css',
32913281
'type' => 'css',
32923282
),
32933283
'2921e259' =>
@@ -3476,20 +3466,19 @@
34763466
'reverse' =>
34773467
array(
34783468
'aphront-attached-file-view-css' => 'ac211174',
3479-
'aphront-crumbs-view-css' => '3c048ceb',
3480-
'aphront-dialog-view-css' => '3c048ceb',
3481-
'aphront-error-view-css' => '3c048ceb',
3482-
'aphront-form-view-css' => '3c048ceb',
3469+
'aphront-crumbs-view-css' => 'd169975b',
3470+
'aphront-dialog-view-css' => 'd169975b',
3471+
'aphront-error-view-css' => 'd169975b',
3472+
'aphront-form-view-css' => 'd169975b',
34833473
'aphront-headsup-action-list-view-css' => '20933a11',
3484-
'aphront-headsup-view-css' => '3c048ceb',
3485-
'aphront-list-filter-view-css' => '3c048ceb',
3486-
'aphront-pager-view-css' => '3c048ceb',
3487-
'aphront-panel-view-css' => '3c048ceb',
3488-
'aphront-side-nav-view-css' => '3c048ceb',
3489-
'aphront-table-view-css' => '3c048ceb',
3490-
'aphront-tokenizer-control-css' => '3c048ceb',
3491-
'aphront-tooltip-css' => '3c048ceb',
3492-
'aphront-typeahead-control-css' => '3c048ceb',
3474+
'aphront-headsup-view-css' => 'd169975b',
3475+
'aphront-list-filter-view-css' => 'd169975b',
3476+
'aphront-pager-view-css' => 'd169975b',
3477+
'aphront-panel-view-css' => 'd169975b',
3478+
'aphront-table-view-css' => 'd169975b',
3479+
'aphront-tokenizer-control-css' => 'd169975b',
3480+
'aphront-tooltip-css' => 'd169975b',
3481+
'aphront-typeahead-control-css' => 'd169975b',
34933482
'differential-changeset-view-css' => '20933a11',
34943483
'differential-core-view-css' => '20933a11',
34953484
'differential-inline-comment-editor' => '76556a8f',
@@ -3503,7 +3492,7 @@
35033492
'differential-table-of-contents-css' => '20933a11',
35043493
'diffusion-commit-view-css' => 'c8ce2d88',
35053494
'diffusion-icons-css' => 'c8ce2d88',
3506-
'global-drag-and-drop-css' => '3c048ceb',
3495+
'global-drag-and-drop-css' => 'd169975b',
35073496
'inline-comment-summary-css' => '20933a11',
35083497
'javelin-aphlict' => '2921e259',
35093498
'javelin-behavior' => 'fbeded59',
@@ -3572,49 +3561,49 @@
35723561
'javelin-util' => 'fbeded59',
35733562
'javelin-vector' => 'fbeded59',
35743563
'javelin-workflow' => 'fbeded59',
3575-
'lightbox-attachment-css' => '3c048ceb',
3564+
'lightbox-attachment-css' => 'd169975b',
35763565
'maniphest-task-summary-css' => 'ac211174',
35773566
'maniphest-transaction-detail-css' => 'ac211174',
3578-
'phabricator-app-buttons-css' => '3c048ceb',
3567+
'phabricator-app-buttons-css' => 'd169975b',
35793568
'phabricator-busy' => '2921e259',
35803569
'phabricator-content-source-view-css' => '20933a11',
3581-
'phabricator-core-buttons-css' => '3c048ceb',
3582-
'phabricator-core-css' => '3c048ceb',
3583-
'phabricator-crumbs-view-css' => '3c048ceb',
3584-
'phabricator-directory-css' => '3c048ceb',
3570+
'phabricator-core-buttons-css' => 'd169975b',
3571+
'phabricator-core-css' => 'd169975b',
3572+
'phabricator-crumbs-view-css' => 'd169975b',
3573+
'phabricator-directory-css' => 'd169975b',
35853574
'phabricator-drag-and-drop-file-upload' => '76556a8f',
35863575
'phabricator-dropdown-menu' => '2921e259',
35873576
'phabricator-file-upload' => '2921e259',
3588-
'phabricator-filetree-view-css' => '3c048ceb',
3589-
'phabricator-flag-css' => '3c048ceb',
3590-
'phabricator-form-view-css' => '3c048ceb',
3591-
'phabricator-header-view-css' => '3c048ceb',
3592-
'phabricator-jump-nav' => '3c048ceb',
3577+
'phabricator-filetree-view-css' => 'd169975b',
3578+
'phabricator-flag-css' => 'd169975b',
3579+
'phabricator-form-view-css' => 'd169975b',
3580+
'phabricator-header-view-css' => 'd169975b',
3581+
'phabricator-jump-nav' => 'd169975b',
35933582
'phabricator-keyboard-shortcut' => '2921e259',
35943583
'phabricator-keyboard-shortcut-manager' => '2921e259',
3595-
'phabricator-main-menu-view' => '3c048ceb',
3584+
'phabricator-main-menu-view' => 'd169975b',
35963585
'phabricator-menu-item' => '2921e259',
3597-
'phabricator-nav-view-css' => '3c048ceb',
3586+
'phabricator-nav-view-css' => 'd169975b',
35983587
'phabricator-notification' => '2921e259',
3599-
'phabricator-notification-css' => '3c048ceb',
3600-
'phabricator-notification-menu-css' => '3c048ceb',
3601-
'phabricator-object-item-list-view-css' => '3c048ceb',
3588+
'phabricator-notification-css' => 'd169975b',
3589+
'phabricator-notification-menu-css' => 'd169975b',
3590+
'phabricator-object-item-list-view-css' => 'd169975b',
36023591
'phabricator-object-selector-css' => '20933a11',
36033592
'phabricator-paste-file-upload' => '2921e259',
36043593
'phabricator-prefab' => '2921e259',
36053594
'phabricator-project-tag-css' => 'ac211174',
3606-
'phabricator-remarkup-css' => '3c048ceb',
3595+
'phabricator-remarkup-css' => 'd169975b',
36073596
'phabricator-shaped-request' => '76556a8f',
3608-
'phabricator-side-menu-view-css' => '3c048ceb',
3609-
'phabricator-standard-page-view' => '3c048ceb',
3597+
'phabricator-side-menu-view-css' => 'd169975b',
3598+
'phabricator-standard-page-view' => 'd169975b',
36103599
'phabricator-textareautils' => '2921e259',
36113600
'phabricator-tooltip' => '2921e259',
3612-
'phabricator-transaction-view-css' => '3c048ceb',
3613-
'phabricator-zindex-css' => '3c048ceb',
3614-
'sprite-apps-large-css' => '3c048ceb',
3615-
'sprite-gradient-css' => '3c048ceb',
3616-
'sprite-icon-css' => '3c048ceb',
3617-
'sprite-menu-css' => '3c048ceb',
3618-
'syntax-highlighting-css' => '3c048ceb',
3601+
'phabricator-transaction-view-css' => 'd169975b',
3602+
'phabricator-zindex-css' => 'd169975b',
3603+
'sprite-apps-large-css' => 'd169975b',
3604+
'sprite-gradient-css' => 'd169975b',
3605+
'sprite-icon-css' => 'd169975b',
3606+
'sprite-menu-css' => 'd169975b',
3607+
'syntax-highlighting-css' => 'd169975b',
36193608
),
36203609
));

‎src/applications/base/controller/PhabricatorController.php

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ public function buildApplicationPage($view, array $options) {
160160
}
161161

162162
$view->setUser($this->getRequest()->getUser());
163-
$view->setFlexNav(true);
164163

165164
$page->appendChild($view);
166165

‎src/view/layout/AphrontSideNavFilterView.php

+1-27
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ final class AphrontSideNavFilterView extends AphrontView {
2121
private $items = array();
2222
private $baseURI;
2323
private $selectedFilter = false;
24-
private $flexNav;
2524
private $flexible;
2625
private $active;
2726
private $menu;
@@ -52,11 +51,6 @@ public function setActive($active) {
5251
return $this;
5352
}
5453

55-
public function setFlexNav($flex_nav) {
56-
$this->flexNav = $flex_nav;
57-
return $this;
58-
}
59-
6054
public function setFlexible($flexible) {
6155
$this->flexible = $flexible;
6256
return $this;
@@ -156,11 +150,7 @@ public function render() {
156150

157151
require_celerity_resource('phabricator-side-menu-view-css');
158152

159-
if ($this->flexNav) {
160-
return $this->renderFlexNav();
161-
} else {
162-
return $this->renderLegacyNav();
163-
}
153+
return $this->renderFlexNav();
164154
}
165155

166156
private function renderFlexNav() {
@@ -259,20 +249,4 @@ private function renderFlexNav() {
259249
$this->renderChildren()));
260250
}
261251

262-
public function renderLegacyNav() {
263-
require_celerity_resource('aphront-side-nav-view-css');
264-
265-
return
266-
'<table class="aphront-side-nav-view phabricator-side-menu">'.
267-
'<tr>'.
268-
'<th class="aphront-side-nav-navigation">'.
269-
self::renderSingleView($this->menu).
270-
'</th>'.
271-
'<td class="aphront-side-nav-content">'.
272-
$this->renderChildren().
273-
'</td>'.
274-
'</tr>'.
275-
'</table>';
276-
}
277-
278252
}

‎webroot/rsrc/css/aphront/side-nav-view.css

-19
This file was deleted.

0 commit comments

Comments
 (0)
Failed to load comments.