Project

General

Profile

« Previous | Next » 

Revision 05110375

Added by Adam Ruzicka about 1 year ago

Fixes #36450 - Respect old/new host details in log/vmrc

View differences:

app/views/hosts/console/log.html.erb
<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 %>
<% if @host && authorized_for(hash_for_host_path(@host)) %>
<%= title_actions(link_to(_("Back to host"), current_host_details_path(:id => @host), :title => _("Back to host"), :class => 'btn btn-default')) %>
<% end %>
<% title "#{@console[:name]}" %>
</div>
<% if @host && (@host.installed_at.nil? or (@console['timestamp'] - @host.installed_at < 5.minutes)) %>

Also available in: Unified diff