lib/flapjack/gateways/email/alert.html.erb in flapjack-0.7.20 vs lib/flapjack/gateways/email/alert.html.erb in flapjack-0.7.21

- old
+ new

@@ -42,13 +42,22 @@ <td>Details</td> <td><%= @details %></td> </tr> <% end %> - <tr> - <td>Time</td> - <td><%= Time.at(@time.to_i).to_s %> (<%= @relative %> ago)</td> - </tr> + <% if @time %> + <tr> + <td>Time</td> + <td><%= Time.at(@time.to_i).to_s %></td> + </tr> + <% end %> + + <% if @duration %> + <tr> + <td>Duration</td> + <td><%= ChronicDuration.output(@duration) %></td> + </tr> + <% end %> <% if @last_state %> <tr> <td>Previous state</td> <td><%= @last_state %></td>