concordia-publishing-house/errbit

View on GitHub
app/views/issue_trackers/github_issues_body.txt.erb

Summary

Maintainability
Test Coverage
[See this exception on Errbit](<%= app_problem_url problem.app, problem %> "See this exception on Errbit")
<% if notice = problem.notices.first %>
# <%= notice.message %> #
## Summary ##
<% if notice.request['url'].present? %>
  ### URL ###
  [<%= notice.request['url'] %>](<%= notice.request['url'] %>)"
<% end %>
### Where ###
<%= notice.where %>

### Occured ###
<%= notice.created_at.to_s(:micro) %>

### Similar ###
<%= (notice.problem.notices_count - 1).to_s %>

## Params ##
```
<%= pretty_hash(notice.params) %>
```

## Session ##
```
<%= pretty_hash(notice.session) %>
```

## Backtrace ##
```
<% notice.backtrace_lines.each do |line| %><%= line.number %>:  <%= line.file_relative %> -> **<%= line.method %>**
<% end %>
```

## Environment ##

<table>
<% for key, val in notice.env_vars %>
  <tr>
    <td><%= key %>:</td>
    <td><%= val %></td>
  </tr>
<% end %>
</table>
<% end %>