Project

General

Profile

Download (1.46 KB) Statistics
| Branch: | Tag: | Revision:
<%= javascript 'reports', 'ace/ace' %>
<% 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-dismiss="alert">&times;</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))
%>

<div id="diff-modal" class="modal hide fade diff-modal">
<div class="modal-header">
<a href="#" class="close" data-dismiss="modal">&times;</a>
<h3>Diff View</h3>
</div>
<div id="diff-modal-editor" class="modal-body">

</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
(5-5/6)