foreman/app/views/reports/show.html.erb @ bf4a13d3
0fe08ca9 | Amos Benari | <%= javascript 'reports', 'ace/ace' %>
|
|
dfd511ba | Amos Benari | <% title "#{@report.host}"%>
|
|
0fe08ca9 | Amos Benari | ||
dfd511ba | Amos Benari | <p class='ra'> <%= _("Reported at %s ") % @report.reported_at.getlocal %> </p>
|
|
4d4557e9 | Joseph Magen | <% if @offset > 10 %>
|
|
82e47ae0 | Amos Benari | <div class="alert alert-message alert-block alert-error">
|
|
5f080138 | Ohad Levy | <a class="close" href="#" data-dismiss="alert">×</a>
|
|
93117958 | Bryan Kearney | <h3><%= _("Host times seems to be adrift!") %></h3>
|
|
3d35e11f | Ohad Levy | <%= (_("Host reported time is <em>%s</em>") % @report.reported_at).html_safe %> <br/>
|
|
<%= (_("Foreman report creation time is <em>%s</em>") % @report.created_at).html_safe %> <br/>
|
|||
<%= (_("Which is an offset of <b>%s</b>") % distance_of_time_in_words(@report.reported_at, @report.created_at, true)).html_safe %>
|
|||
39165477 | Ohad Levy | </div>
|
|
4d4557e9 | Joseph Magen | <% end %>
|
|
9cbcd8f8 | Ohad Levy | ||
be43ec3c | Amos Benari | <% content_for(:search_bar) {logs_show} %>
|
|
56baba5c | Amos Benari | <%= render 'output', :logs => @report.logs%>
|
|
4d4557e9 | Joseph Magen | <%= render 'metrics', :status => @report.status, :metrics => @report.metrics["time"] if @report.metrics["time"] %>
|
|
767bbf03 | Ohad Levy | ||
93117958 | Bryan Kearney | <%= title_actions link_to(_('Back'), :back),
|
|
82e47ae0 | Amos Benari | display_delete_if_authorized(hash_for_report_path(:id => @report), :class=> "btn btn-danger"),
|
|
93117958 | Bryan Kearney | link_to(_("Host details"), @report.host),
|
|
link_to(_("Other reports for this host"), host_reports_path(@report.host))
|
|||
05ab4c16 | Ohad Levy | %>
|
|
0fe08ca9 | Amos Benari | ||
bf4a13d3 | Walden Raines | <div id="diff-modal" class="modal fade">
|
|
<div class="modal-dialog">
|
|||
<div class="modal-content">
|
|||
<div class="modal-header">
|
|||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|||
<h4 class="modal-title"><%= _("Diff View") %></h4>
|
|||
</div>
|
|||
<div id="diff-modal-editor" class="modal-body">
|
|||
0fe08ca9 | Amos Benari | ||
bf4a13d3 | Walden Raines | </div>
|
|
<div class="modal-footer">
|
|||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= _("Close") %></button>
|
|||
</div>
|
|||
</div><!-- /.modal-content -->
|
|||
</div><!-- /.modal-dialog -->
|
|||
</div><!-- /.modal -->
|