Add a "database readonly" state that allows all writes to the database
to be suppressed.
This commit is contained in:
parent
240869f37b
commit
09fdee5493
17 changed files with 44 additions and 23 deletions
|
@ -90,7 +90,7 @@
|
|||
The OpenStreetMap database is currently offline while
|
||||
essential database maintenance work is carried out.
|
||||
</div>
|
||||
<% elsif OSM_STATUS == :api_readonly %>
|
||||
<% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
|
||||
<div id="alert">
|
||||
The OpenStreetMap database is currently in read-only mode while
|
||||
essential database maintenance work is carried out.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<p>The OpenStreetMap database is currently offline while
|
||||
essential database maintenance work is carried out.
|
||||
</p>
|
||||
<% elsif OSM_STATUS == :api_readonly %>
|
||||
<% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
|
||||
<p>The OpenStreetMap database is currently in read-only mode while
|
||||
essential database maintenance work is carried out.
|
||||
</p>
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
<% if OSM_STATUS == :database_offline %>
|
||||
<p>The OpenStreetMap database is currently offline while
|
||||
essential database maintenance work is carried out.
|
||||
</p>
|
||||
<% else %>
|
||||
<p>The OpenStreetMap database is currently in read-only mode while
|
||||
essential database maintenance work is carried out.
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue