X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/88105d9c643519e02082ba9cc5044bb0dfdcb7b9..62a1ec47483803a32c038fb2907afdf45a61b5ee:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index afd33e4ae..9c3c78fda 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.

@@ -65,9 +65,9 @@ fo.addVariable('token','<%= session[:token] %>'); if (lat) { fo.addVariable('lat',lat); } if (lon) { fo.addVariable('long',lon); } - <% if params['gpx'] %> - fo.addVariable('gpx','<%= h(params['gpx']) %>'); - <% end %> + <% if params['gpx'] %>fo.addVariable('gpx' ,'<%= h(params['gpx'] ) %>');<% end %> + <% if params['way'] %>fo.addVariable('way' ,'<%= h(params['way'] ) %>');<% end %> + <% if params['node'] %>fo.addVariable('node','<%= h(params['node']) %>');<% end %> fo.write("map"); }