Improve profile status rendering in html2 reporter

Signed-off-by: James Stocks <jstocks@chef.io>
This commit is contained in:
James Stocks 2020-07-02 14:20:43 +01:00
parent 833aac3ef1
commit cd077a1247

View file

@ -7,7 +7,10 @@
<% if profile.summary %>
<tr class="profile-summary"><th>Summary:</th><td><%= profile.summary %></td></tr>
<% end %>
<% if profile.status_message %>
<% if profile.status != "loaded" %>
<tr class="profile-status"><th>Status:</th><td><%= profile.status %></td></tr>
<% end %>
<% if profile.status_message && !profile.status_message.empty? %>
<tr class="profile-status-message"><th>Status Message:</th><td><%= profile.status_message %></td></tr>
<% end %>
</table>