-<p>The OpenStreetMap database is currently offline while
- essential database maintenance work is carried out.
+<% if OSM_STATUS == :database_offline %>
+<p><%= t 'layouts.osm_offline' %>
</p>
+<% else %>
+<p><%= t 'layouts.osm_read_only' %>
+</p>
+<% end %>