Commit f72fcb0304d1c785a1ae263f4c56899f3fd006bc

Authored by Vasiliy Ermolovich
2 parents 91c0ca39 48109ee8
Exists in master and in 1 other branch production

Merge pull request #303 from lest/patch-1

rename atom_entry partial to atom format
app/views/notices/_atom_entry.atom.haml 0 → 100644
... ... @@ -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   -%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   -