Contact us page and popup

This commit is contained in:
Godwin
2016-07-09 23:29:46 -07:00
parent c6f8d4ed58
commit 22b7dc2129
15 changed files with 340 additions and 168 deletions
+5
View File
@@ -0,0 +1,5 @@
%h1 From
%p=@from.is_a?(User) ? @from.named_email : @from
%h1 Message
%blockquote=markdown(@message)
@@ -0,0 +1,46 @@
%h1 From
%table.error-report
%tr
%th Key
%th Value
%tr
%td User ID
%td=@from.is_a?(User) ? @from.id : ''
%tr
%td User Name
%td=@from.is_a?(User) ? @from.name : ''
%tr
%td User Email
%td=@from.is_a?(User) ? @from.email : @from
%tr
%td IP Address
%td=@request.remote_ip
%tr
%td UUID
%td=@request.uuid
%tr
%td URL
%td=@request.original_url
%h1 Message
%blockquote=markdown(@message)
%h1 Params
%table.error-report
%tr
%th Key
%th Value
- @params.each do | key, value |
%tr
%td=key.to_s
%td=value.to_s
%h1 Request Environment
%table.error-report
%tr
%th Key
%th Value
- @request.env.each do | key, value |
%tr
%td=key.to_s
%td=value.to_s