Commit 8f0eb930eede7714670214ed4ed68f9090117d52
1 parent
5884c151
Exists in
master
and in
1 other branch
Refactored redmine template to use textile tables.
Showing
1 changed file
with
8 additions
and
7 deletions
Show diff stats
app/views/errs/redmine_body.txt.erb
1 | -"See this exception on Errbit":<%= app_err_url err.app, err %> | |
2 | 1 | <% if notice = err.notices.first %> |
3 | 2 | h1. <%= notice.message %> |
4 | 3 | |
4 | +h3. "See this exception on Errbit":<%= app_err_url err.app, err %> | |
5 | + | |
5 | 6 | h2. Summary |
6 | 7 | <% if notice.request['url'].present? %> |
7 | 8 | h3. URL |
... | ... | @@ -30,16 +31,16 @@ h2. Session |
30 | 31 | |
31 | 32 | h2. Backtrace |
32 | 33 | |
33 | -<pre> | |
34 | -<% for line in notice.backtrace %><%= line['number'] %>: <%= line['file'].sub(/^\[PROJECT_ROOT\]/, '') %> -> *<%= line['method'] %>* | |
34 | +| Line | File | Method | | |
35 | +<% for line in notice.backtrace %> | |
36 | +| <%= line['number'] %> | <%= line['file'].sub(/^\[PROJECT_ROOT\]/, '') %> | *<%= line['method'] %>* | | |
35 | 37 | <% end %> |
36 | -</pre> | |
37 | 38 | |
38 | 39 | h2. Environment |
39 | 40 | |
40 | -<pre> | |
41 | 41 | <% for key, val in notice.env_vars %> |
42 | -<%= key %>: <%= val %> | |
42 | +| <%= key %> | <%= val %> | | |
43 | 43 | <% end %> |
44 | -</pre> | |
44 | + | |
45 | 45 | <% end %> |
46 | + | ... | ... |