Commit 6ce9ef1bc32aabf7594d49f25df9d4b5f0905897

Authored by Cyril Mougel
2 parents ed78ea13 806781c0
Exists in master and in 1 other branch production

Merge pull request #620 from CruGlobal/619-handle-app-version-value

add app version to email notifications
app/views/mailer/err_notification.html.haml
... ... @@ -32,6 +32,11 @@
32 32 = link_to_source_file(line) do
33 33 = line.to_s
34 34 %br
  35 + - if @notice.app_version.present?
  36 + %p.heading APP VERSION:
  37 + %p.monospace
  38 + = @notice.app_version
  39 + %br
35 40 %p.heading URL:
36 41 %p.monospace
37 42 - if @notice.request['url'].present?
... ...
app/views/mailer/err_notification.text.erb
... ... @@ -18,6 +18,11 @@ WHERE:
18 18 <%= line %>
19 19 <% end %>
20 20  
  21 +<%- if @notice.app_version.present? %>
  22 +APP VERSION:
  23 +
  24 +<%= @notice.app_version %>
  25 +<%- end %>
21 26  
22 27 URL:
23 28  
... ...