<% if /^(5[0-9]{2})$/ =~ @status.to_s %> <%= content_tag :div, class: "message" do %> <%= content_tag :div, class: "title" do %> <%= "#{@status} Error - #{details[:name]}" %> <%= link_to image_tag("exception_handler/close.png"), main_app.root_url, title: "Close (Go back home)", class: "close" %> <% end %> <%= content_tag :div, class: "details" do %> <%= image_tag "exception_handler/alert.png", title: "#{@status} Error" %>
<%= @status %> Error
<% end %> <%= content_tag :div, class: "info" do %> <%= @message %>
<%= link_to image_tag("exception_handler/home.png", title: "Go Back Home"), main_app.root_url, class: "home" %>
v<%= Rails.version %>
Our developers have been notified - we're working on it!
<% end %> <% end %> <% else %> <%= content_tag :div, @message, class: "message" %> <% end %>