Commit 101ae579 authored by Tiago Botelho's avatar Tiago Botelho Committed by André Luís

Adds system message classes to <html> for both devise views

parent 464fdbb9
...@@ -291,6 +291,13 @@ module ApplicationHelper ...@@ -291,6 +291,13 @@ module ApplicationHelper
class_names = [] class_names = []
class_names << 'issue-boards-page' if current_controller?(:boards) class_names << 'issue-boards-page' if current_controller?(:boards)
class_names << 'with-performance-bar' if performance_bar_enabled? 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-header' if appearance.show_header?
class_names << 'with-system-footer' if appearance.show_footer? class_names << 'with-system-footer' if appearance.show_footer?
......
!!! 5 !!! 5
%html.devise-layout-html %html.devise-layout-html{ class: system_message_class }
= render "layouts/head" = render "layouts/head"
%body.ui_indigo.login-page.application.navless{ data: { page: body_data_page } } %body.ui_indigo.login-page.application.navless{ data: { page: body_data_page } }
= header_message(@appearance) = header_message(@appearance)
......
!!! 5 !!! 5
%html{ lang: "en" } %html{ lang: "en", class: system_message_class }
= render "layouts/head" = render "layouts/head"
%body.ui_indigo.login-page.application.navless %body.ui_indigo.login-page.application.navless
= header_message(@appearance) = header_message(@appearance)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment