Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3dcc65c6
Commit
3dcc65c6
authored
May 20, 2021
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the refactoring class up to body
parent
bf1a63b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/helpers/nav_helper.rb
app/helpers/nav_helper.rb
+0
-1
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+1
-1
No files found.
app/helpers/nav_helper.rb
View file @
3dcc65c6
...
...
@@ -12,7 +12,6 @@ module NavHelper
def
page_with_sidebar_class
class_name
=
page_gutter_class
class_name
<<
'page-with-contextual-sidebar'
if
defined?
(
@left_sidebar
)
&&
@left_sidebar
class_name
<<
'sidebar-refactoring'
if
Feature
.
enabled?
(
:sidebar_refactor
,
current_user
,
default_enabled: :yaml
)
class_name
<<
'page-with-icon-sidebar'
if
collapsed_sidebar?
&&
@left_sidebar
class_name
-=
[
'right-sidebar-expanded'
]
if
defined?
(
@right_sidebar
)
&&
!
@right_sidebar
...
...
app/views/layouts/application.html.haml
View file @
3dcc65c6
...
...
@@ -4,7 +4,7 @@
!!! 5
%html
{
lang:
I18n
.
locale
,
class:
page_classes
}
=
render
"layouts/head"
%body
{
class:
"#{user_application_theme} #{user_tab_width} #{@body_class} #{client_class_list}"
,
data:
body_data
}
%body
{
class:
[
user_application_theme
,
user_tab_width
,
@body_class
,
client_class_list
,
(
'sidebar-refactoring'
if
Feature
.
enabled?
(
:sidebar_refactor
,
current_user
,
default_enabled: :yaml
))]
,
data:
body_data
}
=
render
"layouts/init_auto_complete"
if
@gfm_form
=
render
"layouts/init_client_detection_flags"
=
render
'peek/bar'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment