:img_src => %w(developer.mapquest.com)
)
+ if STATUS == :database_offline || STATUS == :api_offline
+ flash.now[:warning] = t("layouts.osm_offline")
+ elsif STATUS == :database_readonly || STATUS == :api_readonly
+ flash.now[:warning] = t("layouts.osm_read_only")
+ end
+
request.xhr? ? "xhr" : "map"
end
<div id="sidebar">
<%= render :partial => "layouts/search", :locals => { :autofocus => true } %>
- <% if STATUS == :database_offline or STATUS == :api_offline %>
- <p class="error"><%= t 'layouts.osm_offline' %></p>
- <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
- <p class="error"><%= t 'layouts.osm_read_only' %></p>
- <% end %>
-
<div id="flash">
<%= render :partial => "layouts/flash" %>
</div>