forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.html.haml
45 lines (37 loc) · 1.45 KB
/
show.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- content_for :page_title, @err.message
- content_for :title, @err.klass
- content_for :meta do
%strong Where:
= @err.where
%strong Environment:
= @err.environment
%strong Last Notice:
= last_notice_at(@err).to_s(:micro)
- content_for :action_bar do
%span= link_to 'resolve', resolve_app_err_path(@app, @err), :method => :put, :confirm => err_confirm, :class => 'resolve' if @err.unresolved?
%h4= @notice.try(:message)
= will_paginate @notices, :param_name => :notice, :page_links => false, :class => 'notice-pagination'
viewing occurrence #{@notices.current_page} of #{@notices.total_pages}
.tab-bar
%ul
%li= link_to 'Summary', '#summary', :rel => 'summary', :class => 'button'
%li= link_to 'Backtrace', '#backtrace', :rel => 'backtrace', :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'
- if @notice
#summary
%h3 Summary
= render 'notices/summary', :notice => @notice
#backtrace
%h3 Backtrace
= render 'notices/backtrace', :lines => @notice.backtrace
#environment
%h3 Environment
= render 'notices/environment', :notice => @notice
#params
%h3 Parameters
= render 'notices/params', :notice => @notice
#session
%h3 Session
= render 'notices/session', :notice => @notice