BikeBikeBike/app/views/user_mailer/contact_details.html.haml

46 lines
890 B
Plaintext
Raw Normal View History

2017-04-09 11:37:16 -07:00
%h1=_!('From')
2016-07-09 23:29:46 -07:00
%table.error-report
%tr
2017-04-09 11:37:16 -07:00
%th=_!'Key'
%th=_!'Value'
%tr
2017-04-09 11:37:16 -07:00
%td=_!'User ID'
%td=_!(@from.is_a?(User) ? @from.id : '')
%tr
2017-04-09 11:37:16 -07:00
%td=_!'User Name'
%td=_!(@from.is_a?(User) ? @from.name : '')
%tr
2017-04-09 11:37:16 -07:00
%td=_!'User Email'
%td=_!(@from.is_a?(User) ? @from.email : @from)
%tr
2017-04-09 11:37:16 -07:00
%td=_!'IP Address'
%td=_!@request['remote_ip']
%tr
2017-04-09 11:37:16 -07:00
%td=_!'UUID'
%td=_!@request['uuid']
%tr
2017-04-09 11:37:16 -07:00
%td=_!'URL'
%td=_!@request['original_url']
2016-07-09 23:29:46 -07:00
2017-04-09 11:37:16 -07:00
%h1=_!'Message'
%blockquote=_!markdown(@message)
2016-07-09 23:29:46 -07:00
2017-04-09 11:37:16 -07:00
%h1=_!'Params'
2016-07-09 23:29:46 -07:00
%table.error-report
%tr
2017-04-09 11:37:16 -07:00
%th=_!'Key'
%th=_!'Value'
- @params.each do |key, value|
%tr
2017-04-09 11:37:16 -07:00
%td=_!key
%td=_!value
2016-07-09 23:29:46 -07:00
2017-04-09 11:37:16 -07:00
%h1=_!'Request Environment'
2016-07-09 23:29:46 -07:00
%table.error-report
%tr
2017-04-09 11:37:16 -07:00
%th=_!'Key'
%th=_!'Value'
- @request['env'].each do |key, value|
%tr
2017-04-09 11:37:16 -07:00
%td=_!key
%td=_!value