@@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base |
||
25 | 25 |
|
26 | 26 |
def check_admin_mode |
27 | 27 |
if @config.maintenance_mode && controller_name != 'sessions' && !user_signed_in? && action_name != 'maintenance_mode' |
28 |
- redirect_to maintenance_mode_path |
|
28 |
+ render "admin_panel/maintenance_mode" |
|
29 | 29 |
elsif !@config.maintenance_mode && !user_signed_in? && action_name == 'maintenance_mode' |
30 | 30 |
redirect_to root_path |
31 | 31 |
end |
@@ -4,6 +4,5 @@ |
||
4 | 4 |
<h1><%= @config.maintenance_title %></h1> |
5 | 5 |
<p><%= @config.maintenance_message %></p> |
6 | 6 |
</div> |
7 |
- <%= bootstrap_flash %> |
|
8 | 7 |
</div> |
9 | 8 |
</div> |