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
101ae579
Commit
101ae579
authored
Mar 26, 2018
by
Tiago Botelho
Committed by
André Luís
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds system message classes to <html> for both devise views
parent
464fdbb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+7
-0
app/views/layouts/devise.html.haml
app/views/layouts/devise.html.haml
+1
-1
app/views/layouts/devise_empty.html.haml
app/views/layouts/devise_empty.html.haml
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
101ae579
...
...
@@ -291,6 +291,13 @@ module ApplicationHelper
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?
...
...
app/views/layouts/devise.html.haml
View file @
101ae579
!!! 5
%html
.devise-layout-html
%html
.devise-layout-html
{
class:
system_message_class
}
=
render
"layouts/head"
%body
.ui_indigo.login-page.application.navless
{
data:
{
page:
body_data_page
}
}
=
header_message
(
@appearance
)
...
...
app/views/layouts/devise_empty.html.haml
View file @
101ae579
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
,
class:
system_message_class
}
=
render
"layouts/head"
%body
.ui_indigo.login-page.application.navless
=
header_message
(
@appearance
)
...
...
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