Commit 2f48ecd212d12c8ec47dac2de81373136c78b055
Exists in
master
and in
1 other branch
Merge pull request #904 from mattclements/feature-870
#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,6 +37,12 @@ | ||
| 37 | %p.monospace | 37 | %p.monospace |
| 38 | = @notice.app_version | 38 | = @notice.app_version |
| 39 | %br | 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 | %p.heading URL: | 46 | %p.heading URL: |
| 41 | %p.monospace | 47 | %p.monospace |
| 42 | - if @notice.request['url'].present? | 48 | - if @notice.request['url'].present? |
app/views/mailer/err_notification.text.erb
| @@ -24,6 +24,12 @@ APP VERSION: | @@ -24,6 +24,12 @@ APP VERSION: | ||
| 24 | <%= @notice.app_version %> | 24 | <%= @notice.app_version %> |
| 25 | <%- end %> | 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 | URL: | 33 | URL: |
| 28 | 34 | ||
| 29 | <%= @notice.request['url'] %> | 35 | <%= @notice.request['url'] %> |