- <div id="left_menu">
- <a href="http://wiki.openstreetmap.org">Help & Wiki</a><br />
- <%= link_to "Users' diaries", {:controller => 'diary_entry', :action => 'list'} %><br />
+ <% if API_STATUS == :offline %>
+ <div id="alert">
+ The OpenStreetMap database is currently offline while
+ essential database maintenance work is carried out.
+ </div>
+ <% elsif API_STATUS == :readonly %>
+ <div id="alert">
+ The OpenStreetMap database is currently in read-only mode while
+ essential database maintenance work is carried out.
+ </div>
+ <% end %>
+
+ <div id="left_menu" class="left_menu">
+ <a href="http://wiki.openstreetmap.org">Help & Wiki</a><br />
+ <%= link_to "Users' diaries", {:controller => 'diary_entry', :action => 'list', :display_name => nil} %><br />