|
<div class="row">
|
|
<% search_bar(_("Generated %s ago") % time_ago_in_words(@console['timestamp'])) %>
|
|
<%= title_actions(link_to_if_authorized(_("Back to host"), hash_for_host_path(:id => @host), :title => _("Back to host"), :class => 'btn btn-default')) if @host %>
|
|
<% title "#{@console[:name]}" %>
|
|
</div>
|
|
<% if @host && (@host.installed_at.nil? or (@console['timestamp'] - @host.installed_at < 5.minutes)) %>
|
|
<div class='alert'>
|
|
<a class="close" href="#" data-dismiss="alert">×</a>
|
|
Console output may be out of date
|
|
</div>
|
|
<% end %>
|
|
<pre class="pre-scrollable">
|
|
<code>
|
|
<%= @console['output'] %>
|
|
</code>
|
|
</pre>
|
|
|