X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3700e6201b4b78a70bbb2941572edc985b63c2c..9a1728c2024975cdfd0ba76de0af57a3a2adccbc:/app/views/site/edit.html.erb diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index e84adf2d4..d89af0596 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -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" %>

<%= t 'layouts.osm_offline' %>

- <% elsif STATUS == :database_readonly or STATUS == :api_readonly %> + <% elsif Settings.status == "database_readonly" or Settings.status == "api_readonly" %>

<%= t 'layouts.osm_read_only' %>

<% elsif !current_user.data_public? %>

<%= t '.not_public' %>