Sha256: 84029ab195bef152ba570e496eec87b662dfd4a85116a28c5eb572c3aff0f88f

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

<!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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exception_handler-0.8.0.0 app/views/layouts/exception.html.erb