]> git.openstreetmap.org Git - rails.git/commitdiff
Use offline flash partial on offline redirect target page
authorAnton Khorev <tony29@yandex.ru>
Mon, 16 Dec 2024 16:09:23 +0000 (19:09 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 18 Dec 2024 15:59:49 +0000 (18:59 +0300)
app/controllers/site_controller.rb

index 13a97a6640f052cb64a2828cb743dd066a0c1876..aa107bcb6b6cebe842a0d83a2492f2f5ab514275 100644 (file)
@@ -137,11 +137,7 @@ class SiteController < ApplicationController
   def export; end
 
   def offline
-    flash.now[:warning] = if Settings.status == "database_offline"
-                            t("layouts.osm_offline")
-                          else
-                            t("layouts.osm_read_only")
-                          end
+    flash.now[:warning] = { :partial => "layouts/offline_flash" }
     render :html => nil, :layout => true
   end