Commit c895093add54cf16db36d0237570e8f27eb666f2
1 parent
69c98017
Exists in
master
and in
1 other branch
#870 App Server not in notification email
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
app/views/mailer/err_notification.html.haml
... | ... | @@ -37,6 +37,12 @@ |
37 | 37 | %p.monospace |
38 | 38 | = @notice.app_version |
39 | 39 | %br |
40 | + %br | |
41 | + - if @notice.server_environment.present? && @notice.server_environment["hostname"].present? | |
42 | + %p.heading APP SERVER: | |
43 | + %p.monospace | |
44 | + = @notice.server_environment["hostname"] | |
45 | + %br | |
40 | 46 | %p.heading URL: |
41 | 47 | %p.monospace |
42 | 48 | - if @notice.request['url'].present? | ... | ... |
app/views/mailer/err_notification.text.erb
... | ... | @@ -24,6 +24,12 @@ APP VERSION: |
24 | 24 | <%= @notice.app_version %> |
25 | 25 | <%- end %> |
26 | 26 | |
27 | +<%- if @notice.server_environment.present? && @notice.server_environment["hostname"].present? %> | |
28 | +APP SERVER: | |
29 | + | |
30 | +<%= @notice.server_environment["hostname"] %> | |
31 | +<%- end %> | |
32 | + | |
27 | 33 | URL: |
28 | 34 | |
29 | 35 | <%= @notice.request['url'] %> | ... | ... |