forked from richpeck/exception_handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exception.html.erb
32 lines (26 loc) · 1.06 KB
/
exception.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<!-- Head -->
<head>
<!-- Info -->
<%= content_tag :title, "Error - #{@exception.status} (#{@exception.response.to_s.gsub("_", " ").titleize}) | #{Rails.application.class.parent_name.titleize}" %>
<!-- Styling -->
<%= stylesheet_link_tag :exception_handler %>
<%= favicon_link_tag "exception_handler/favicon.ico" %>
<% if x = ExceptionHandler.config.options(@exception.status) %>
<style>body { background: url("<%= asset_path x %>") center center no-repeat !important; background-size: cover !important; }</style>
<% end %>
<!-- Auth -->
<%= csrf_meta_tags %>
</head>
<!-- Body -->
<%= content_tag :body, yield %>
<!-- Footer -->
<% if ExceptionHandler.config.try(:social) %>
<%= content_tag :footer do %>
<% ExceptionHandler.config.social.each do |k,v| %>
<%= link_to image_tag("exception_handler/connect/#{k}.png"), ExceptionHandler::Config::SOCIAL[k] + "/" + v, id: k, title: "#{k.to_s.titleize} Feed", target: :blank if v %>
<% end %>
<% end %>
<% end %>
</html>