Project

General

Profile

Download (1.08 KB) Statistics
| Branch: | Tag: | Revision:
<%= javascript 'spice/setup', 'spice' %>
<% title "#{@console[:name]}" %>
<%= title_actions(
button_group(link_to("Ctrl-Alt-Del", "#", :id => "sendCtrlAltDelButton", :onclick => 'sendCtrlAltDel()', :class => "btn"),
if supports_spice_xpi?
link_to("New window", "#", :id => "disconnect", :class => "btn", :onclick => 'connectXPI()', :title => "Open Spice in a new window")
end,
if @host
link_to_if_authorized("Back to host", hash_for_host_path(:id => @host), :title => "Back to host", :class => 'btn')
end
)) %>

<%# TODO: when rails 3.2 merge is done uncomment the following %>
<%# tag(:div id =>'spice-area' data => spice_data_attributes(@console) %>
<div id='spice-area' <%= spice_data_attributes(@console).map {|k,v| "data-#{k}=#{v}"}.join(' ') %>>
<div class="console-status">
<div id="spice-status" class="span7 label"><%= "Connecting (unencrypted) to: #{@console[:name]}" %></div>
</div>
<div id="spice-screen" class="console-screen"> </div>
</div>
(2-2/3)