Project

General

Profile

Download (1.07 KB) Statistics
| Branch: | Tag: | Revision:
<% title "#{@report.host} - #{time_ago_in_words(@report.reported_at)} ago"%>
<div class="row ra"><p class="span12"> Reported at <%= @report.reported_at.getlocal %></p></div>
<% if @offset > 10 -%>
<div class="alert alert-message alert-block alert-error">
<a class="close" href="#" data-dismis="alert">×</a>
<h3>Host time seems to be adrift!</h3>
Host reported time is <em><%= @report.reported_at %></em> <br/>
Foreman report creation time is <em><%= @report.created_at %></em> <br/>
Which is an offset of <b><%= distance_of_time_in_words(@report.reported_at, @report.created_at, true) %></b>
</div>
<% end -%>

<% content_for(:search_bar) {logs_show} %>

<%= render 'output', :logs => @report.logs%>
<%= render 'metrics', :status => @report.status, :metrics => @report.metrics["time"] if @report.metrics["time"] -%>

<%= title_actions link_to('Back', :back),
display_delete_if_authorized(hash_for_report_path(:id => @report), :class=> "btn btn-danger"),
link_to("Host details", @report.host),
link_to("Other reports for this host", host_reports_path(@report.host))
%>
(5-5/6)