Add support for putting the site in an offline mode where it operates

without a database but with most features disabled.
This commit is contained in:
Tom Hughes 2008-06-22 12:10:32 +00:00
parent b527d27674
commit 2cf15b549e
9 changed files with 38 additions and 11 deletions

View file

@ -76,12 +76,12 @@
</div>
<% end %>
<% if API_STATUS == :offline %>
<% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
<div id="alert">
The OpenStreetMap database is currently offline while
essential database maintenance work is carried out.
</div>
<% elsif API_STATUS == :readonly %>
<% elsif OSM_STATUS == :api_readonly %>
<div id="alert">
The OpenStreetMap database is currently in read-only mode while
essential database maintenance work is carried out.

View file

@ -1,8 +1,8 @@
<% if API_STATUS == :offline %>
<% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
<p>The OpenStreetMap database is currently offline while
essential database maintenance work is carried out.
</p>
<% elsif API_STATUS == :readonly %>
<% elsif OSM_STATUS == :api_readonly %>
<p>The OpenStreetMap database is currently in read-only mode while
essential database maintenance work is carried out.
</p>

View file

@ -0,0 +1,3 @@
<p>The OpenStreetMap database is currently offline while
essential database maintenance work is carried out.
</p>