Added files for 500 page and email error report

This commit is contained in:
Godwin 2016-06-05 21:55:57 -07:00
parent cf1345c211
commit 98a33e42ee
3 changed files with 54 additions and 0 deletions

BIN
app/assets/images/parts.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

View File

@ -0,0 +1,4 @@
= render :partial => 'application/header', :locals => {:image_file => 'parts.jpg'}
= row do
= columns(medium: 12) do
= paragraph(_'error.500.description', :p)

View File

@ -0,0 +1,50 @@
%p=@message if @message.present?
%p=@report
- if @exception.present? && @exception.respond_to?(:backtrace)
%h1 Backtrace
%pre=@exception.backtrace.join("\n")
%h1 Details
%table
%tr
%th Key
%th Value
%tr
%td User ID
%td=@user.present? ? @user.id : ''
%tr
%td User Name
%td=@user.present? ? @user.name : ''
%tr
%td User Email
%td=@user.present? ? @user.email : ''
%tr
%td IP Address
%td=@request.remote_ip
%tr
%td UUID
%td=@request.uuid
%tr
%td URL
%td=@request.original_url
%h1 Params
%table
%tr
%th Key
%th Value
- @params.each do | key, value |
%tr
%td=key.to_s
%td=value.to_s
%h1 Request Environment
%table
%tr
%th Key
%th Value
- @request.env.each do | key, value |
%tr
%td=key.to_s
%td=value.to_s