Commit 6a3797e542f129dc4d1616731221a95ee16a4b3b

Authored by Nathan Broadbent
1 parent 97b7ed95
Exists in master and in 1 other branch production

Fixed User Attributes partials

app/views/errs/show.html.haml
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 %li= link_to 'Summary', '#summary', :rel => 'summary', :class => 'button' 51 %li= link_to 'Summary', '#summary', :rel => 'summary', :class => 'button'
52 %li= link_to 'Backtrace', '#backtrace', :rel => 'backtrace', :class => 'button' 52 %li= link_to 'Backtrace', '#backtrace', :rel => 'backtrace', :class => 'button'
53 - if @notice.user_attributes.present? 53 - if @notice.user_attributes.present?
54 - %li= link_to 'Application User', '#user_attributes', :rel => 'user_attributes', :class => 'button' 54 + %li= link_to 'User Details', '#user_attributes', :rel => 'user_attributes', :class => 'button'
55 %li= link_to 'Environment', '#environment', :rel => 'environment', :class => 'button' 55 %li= link_to 'Environment', '#environment', :rel => 'environment', :class => 'button'
56 %li= link_to 'Parameters', '#params', :rel => 'params', :class => 'button' 56 %li= link_to 'Parameters', '#params', :rel => 'params', :class => 'button'
57 %li= link_to 'Session', '#session', :rel => 'session', :class => 'button' 57 %li= link_to 'Session', '#session', :rel => 'session', :class => 'button'
@@ -67,7 +67,7 @@ @@ -67,7 +67,7 @@
67 67
68 - if @notice.user_attributes.present? 68 - if @notice.user_attributes.present?
69 #user_attributes 69 #user_attributes
70 - %h3 User 70 + %h3 User Details
71 = render 'notices/user_attributes', :user => @notice.user_attributes 71 = render 'notices/user_attributes', :user => @notice.user_attributes
72 72
73 #environment 73 #environment
app/views/notices/_user_attributes.html.haml 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +.window
  2 + %table.user_attributes
  3 + %tr
  4 + %td
  5 + %strong Information about the user who experienced the error.
  6 + - user.each do |user_key, user_value|
  7 + %tr
  8 + %th= user_key
  9 + %td= auto_link(user_value).html_safe
app/views/notices/_user_info.html.haml
@@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
1 -.window  
2 - %table.user_attributes  
3 - - user.each do |user_key, user_value|  
4 - %tr  
5 - %th= user_key  
6 - %td= auto_link(user_value).html_safe