Commit 48109ee8921619dd5f8c1b57a145fa5945c36048
1 parent
6e4c563f
Exists in
master
and in
1 other branch
rename atom_entry partial to atom format
Fix the error introduced in 6e4c563ff66dbba200c98dff8ed733d72ad1237d
Showing
2 changed files
with
41 additions
and
41 deletions
Show diff stats
@@ -0,0 +1,41 @@ | @@ -0,0 +1,41 @@ | ||
1 | +%h2= notice.message | ||
2 | +%h3 Summary | ||
3 | +- if notice.request['url'].present? | ||
4 | + %p | ||
5 | + %strong URL: | ||
6 | + = link_to(notice.request['url'], notice.request['url']) | ||
7 | +%p | ||
8 | + %strong Where: | ||
9 | + = notice.where | ||
10 | +%p | ||
11 | + %strong Occured: | ||
12 | + = notice.created_at.to_s(:micro) | ||
13 | +%p | ||
14 | + %strong Similar: | ||
15 | + = notice.problem.notices_count - 1 | ||
16 | + | ||
17 | +%h3 Params | ||
18 | +%p= pretty_hash(notice.params) | ||
19 | + | ||
20 | +%h3 Session | ||
21 | +%p= pretty_hash(notice.session) | ||
22 | + | ||
23 | +%h3 Backtrace | ||
24 | +%table | ||
25 | + - for line in notice.backtrace_lines | ||
26 | + %tr | ||
27 | + %td | ||
28 | + = "#{line.number}:" | ||
29 | + | ||
30 | + %td | ||
31 | + = raw "#{h line.file_relative} -> #{content_tag :strong, h(line.method)}" | ||
32 | + | ||
33 | +%h3 Environment | ||
34 | +%table | ||
35 | + - for key, val in notice.env_vars | ||
36 | + %tr | ||
37 | + %td | ||
38 | + = h key | ||
39 | + %td | ||
40 | + = h val | ||
41 | + |
app/views/notices/_atom_entry.html.haml
@@ -1,41 +0,0 @@ | @@ -1,41 +0,0 @@ | ||
1 | -%h2= notice.message | ||
2 | -%h3 Summary | ||
3 | -- if notice.request['url'].present? | ||
4 | - %p | ||
5 | - %strong URL: | ||
6 | - = link_to(notice.request['url'], notice.request['url']) | ||
7 | -%p | ||
8 | - %strong Where: | ||
9 | - = notice.where | ||
10 | -%p | ||
11 | - %strong Occured: | ||
12 | - = notice.created_at.to_s(:micro) | ||
13 | -%p | ||
14 | - %strong Similar: | ||
15 | - = notice.problem.notices_count - 1 | ||
16 | - | ||
17 | -%h3 Params | ||
18 | -%p= pretty_hash(notice.params) | ||
19 | - | ||
20 | -%h3 Session | ||
21 | -%p= pretty_hash(notice.session) | ||
22 | - | ||
23 | -%h3 Backtrace | ||
24 | -%table | ||
25 | - - for line in notice.backtrace_lines | ||
26 | - %tr | ||
27 | - %td | ||
28 | - = "#{line.number}:" | ||
29 | - | ||
30 | - %td | ||
31 | - = raw "#{h line.file_relative} -> #{content_tag :strong, h(line.method)}" | ||
32 | - | ||
33 | -%h3 Environment | ||
34 | -%table | ||
35 | - - for key, val in notice.env_vars | ||
36 | - %tr | ||
37 | - %td | ||
38 | - = h key | ||
39 | - %td | ||
40 | - = h val | ||
41 | - |