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
aa831b34
Commit
aa831b34
authored
Mar 27, 2018
by
Tiago Botelho
Committed by
André Luís
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves application helper logic for system header and footer to its EE counterpart
parent
b505557d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+0
-13
ee/app/helpers/ee/application_helper.rb
ee/app/helpers/ee/application_helper.rb
+24
-0
No files found.
app/helpers/application_helper.rb
View file @
aa831b34
...
...
@@ -283,23 +283,10 @@ module ApplicationHelper
end
end
def
appearance
@appearance
||=
Appearance
.
current
end
def
page_class
class_names
=
[]
class_names
<<
'issue-boards-page'
if
current_controller?
(
:boards
)
class_names
<<
'with-performance-bar'
if
performance_bar_enabled?
class_names
+=
system_message_class
class_names
end
def
system_message_class
class_names
=
[]
class_names
<<
'with-system-header'
if
appearance
.
show_header?
class_names
<<
'with-system-footer'
if
appearance
.
show_footer?
class_names
end
...
...
ee/app/helpers/ee/application_helper.rb
View file @
aa831b34
...
...
@@ -9,5 +9,29 @@ module EE
(
_
(
'You are on a secondary (read-only) Geo node. If you want to make any changes, you must visit the %{primary_node}.'
)
%
{
primary_node:
link_to
(
'primary node'
,
::
Gitlab
::
Geo
.
primary_node
.
url
)
}).
html_safe
end
def
page_class
class_names
=
super
class_names
+=
system_message_class
class_names
end
def
system_message_class
class_names
=
[]
return
class_names
unless
appearance
class_names
<<
'with-system-header'
if
appearance
.
show_header?
class_names
<<
'with-system-footer'
if
appearance
.
show_footer?
class_names
end
private
def
appearance
::
Appearance
.
current
end
end
end
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