X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3eecc3ee5b8f53e691645cfff8f9ffc058300b5e..c321c026f265c6c2b25a3d564232a12f6ca48c0a:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index c5d40d9a8..daa78f3b9 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -1,8 +1,8 @@ -<% if API_STATUS == :offline %> +<% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
The OpenStreetMap database is currently offline while essential database maintenance work is carried out.
-<% elsif API_STATUS == :readonly %> +<% elsif OSM_STATUS == :api_readonly %>The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out.
@@ -21,53 +21,73 @@ <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> <%= render :partial => 'search' %> -<% session[:token] = @user.tokens.create.token unless session[:token] %> - -<% if params['mlon'] and params['mlat'] %> -<% lon = h(params['mlon']) %> -<% lat = h(params['mlat']) %> -<% zoom = h(params['zoom'] || '12') %> -<% elsif @user and params['lon'].nil? and params['lat'].nil? %> -<% lon = @user.home_lon %> -<% lat = @user.home_lat %> -<% zoom = '12' %> -<%else%> -<% lon = h(params['lon'] || '-0.1') %> -<% lat = h(params['lat'] || '51.5') %> -<% zoom = h(params['zoom'] || '12') %> -<% end %> - -