{% include 'emails.header-text' %}
{{ trans('email.error_intro', { version: version, errorMessage: errorMessage })|striptags|raw }}

{{ trans('email.error_type', {class: class })|raw }}

{{ trans('email.error_timestamp', {time: time })|raw }}

{{ trans('email.error_location', { file: file , line: line, code: code })|striptags|raw }}

{% if loggedIn %}
{{     trans('email.error_user', { id: user.id, email: user.email })|striptags|raw }}
{% else %}
{{     trans('email.error_no_user')|raw }}
{% endif %}

{{ trans('email.error_ip', { ip: ip }) }}
{{ method }} {{ trans('email.error_url', {url :url}) }}
{{ trans('email.error_user_agent', {userAgent: userAgent } ) }}

{{ trans('email.error_stacktrace')|striptags|raw }}

{{ trans('email.error_github_text' )|raw }}

{{ trans('email.error_stacktrace_below')|raw }}

{{ stackTrace|raw }}

{{ trans('email.error_headers') }}

{% for key, header in headers %}
{% if (key != 'cookie') and header[0] != '' and key != 'x-xsrf-token'  %}
- {{ key }}: {{ header[0] }}
{% endif %}
{% endfor %}

{% if ('' != post) %}
{{ trans('email.error_post') }}

{{ post }}
{% endif %}

{% include 'emails.footer-text' %}
