-<% if STATUS == :database_offline %>
-<p><%= t 'layouts.osm_offline' %>
+<% if Settings.status == "database_offline" %>
+<p><%= t "layouts.osm_offline" %>
</p>
<% else %>
-<p><%= t 'layouts.osm_read_only' %>
+<p><%= t "layouts.osm_read_only" %>
</p>
-<% end %>
+<% end %>