lib/flapjack/gateways/email/rollup.html.erb in flapjack-1.6.0rc2 vs lib/flapjack/gateways/email/rollup.html.erb in flapjack-1.6.0rc3
- old
+ new
@@ -20,19 +20,22 @@
<tr>
<th>Check</th>
<th>Entity</th>
<th>State</th>
<th>Duration</th>
+ <th>Summary</th>
</tr>
<% @alert.rollup_alerts.sort_by {|entity_check, details| details['duration'] }.each do |rollup_alert| -%>
<% r_entity, r_check = rollup_alert[0].split(':', 2) -%>
<% state = rollup_alert[1]['state'] -%>
<% duration = (ChronicDuration.output(rollup_alert[1]['duration'], :keep_zero => true) || '0 secs') -%>
+<% summary = rollup_alert[1]['summary'] -%>
<tr>
<td><%= r_check %></td>
<td><%= r_entity %></td>
<td><%= ['ok'].include?(state) ? state.upcase : state.titleize %></td>
<td><%= duration %></td>
+ <td><%= summary %></td>
</tr>
<% end %>
</tbody>
</table>