]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.html.erb
Move status into the settings object
[rails.git] / app / views / site / edit.html.erb
index e84adf2d48bae0d20188c14b20c772f0521167ef..d89af0596a5ebc566fa92c81b90520a2f6c64691 100644 (file)
@@ -1,7 +1,7 @@
 <% content_for :content do %>
-  <% if STATUS == :database_offline or STATUS == :api_offline %>
+  <% if Settings.status == "database_offline" or Settings.status == "api_offline" %>
     <p><%= t 'layouts.osm_offline' %></p>
-  <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
+  <% elsif Settings.status == "database_readonly" or Settings.status == "api_readonly" %>
     <p><%= t 'layouts.osm_read_only' %></p>
   <% elsif !current_user.data_public? %>
     <p><%= t '.not_public' %></p>