diff --git a/app/views/errs/show.html.haml b/app/views/errs/show.html.haml index 84bde51..7d7af9e 100644 --- a/app/views/errs/show.html.haml +++ b/app/views/errs/show.html.haml @@ -51,7 +51,7 @@ %li= link_to 'Summary', '#summary', :rel => 'summary', :class => 'button' %li= link_to 'Backtrace', '#backtrace', :rel => 'backtrace', :class => 'button' - if @notice.user_attributes.present? - %li= link_to 'Application User', '#user_attributes', :rel => 'user_attributes', :class => 'button' + %li= link_to 'User Details', '#user_attributes', :rel => 'user_attributes', :class => 'button' %li= link_to 'Environment', '#environment', :rel => 'environment', :class => 'button' %li= link_to 'Parameters', '#params', :rel => 'params', :class => 'button' %li= link_to 'Session', '#session', :rel => 'session', :class => 'button' @@ -67,7 +67,7 @@ - if @notice.user_attributes.present? #user_attributes - %h3 User + %h3 User Details = render 'notices/user_attributes', :user => @notice.user_attributes #environment diff --git a/app/views/notices/_user_attributes.html.haml b/app/views/notices/_user_attributes.html.haml new file mode 100644 index 0000000..7cf8ee4 --- /dev/null +++ b/app/views/notices/_user_attributes.html.haml @@ -0,0 +1,9 @@ +.window + %table.user_attributes + %tr + %td + %strong Information about the user who experienced the error. + - user.each do |user_key, user_value| + %tr + %th= user_key + %td= auto_link(user_value).html_safe diff --git a/app/views/notices/_user_info.html.haml b/app/views/notices/_user_info.html.haml deleted file mode 100644 index 5810231..0000000 --- a/app/views/notices/_user_info.html.haml +++ /dev/null @@ -1,6 +0,0 @@ -.window - %table.user_attributes - - user.each do |user_key, user_value| - %tr - %th= user_key - %td= auto_link(user_value).html_safe -- libgit2 0.21.2