layout fixes

jamesperet 10 年 前
コミット
e39c1b8cb3
共有2 個のファイルを変更した1 個の追加2 個の削除を含む
  1. 1 1
      app/controllers/application_controller.rb
  2. 0 1
      app/views/admin_panel/maintenance_mode.html.erb

+ 1 - 1
app/controllers/application_controller.rb

@@ -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

+ 0 - 1
app/views/admin_panel/maintenance_mode.html.erb

@@ -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>