|
<%= javascript "compute_resource" %>
|
|
<% title @compute_resource.name %>
|
|
|
|
<ul class="nav nav-tabs" data-tabs="tabs">
|
|
<li class="active"><a href="#primary" data-toggle="tab">Primary</a></li>
|
|
<li><a href="#vms" data-toggle="tab">Virtual Machines</a></li>
|
|
<% if @compute_resource.capabilities.include?(:image) -%>
|
|
<li><a href="#images" data-toggle="tab">Images</a></li>
|
|
<% end -%>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="primary">
|
|
<table class="table table-bordered table-striped">
|
|
<th>Details</th>
|
|
<th></th>
|
|
|
|
<tr>
|
|
<td>Provider</td>
|
|
<td><%= @compute_resource.provider %></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Description</td>
|
|
<td><%= @compute_resource.description %></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>URL</td>
|
|
<td><%= @compute_resource.url %></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="vms" class="tab-pane" data-url=<%= compute_resource_vms_path(@compute_resource) %>>
|
|
<p id="spinner">
|
|
<%= image_tag 'spinner.gif' %>
|
|
Loading Virtual Machines information ...
|
|
</p>
|
|
</div>
|
|
<% if @compute_resource.capabilities.include?(:image) -%>
|
|
<div id="images" class="tab-pane">
|
|
<%= title_actions(display_link_if_authorized("New Image", hash_for_new_compute_resource_image_path(:compute_resource_id => @compute_resource.id), :class => "btn btn-success")) %>
|
|
<div id="images_list" data-url=<%= compute_resource_images_path(@compute_resource) %>>
|
|
<p id="spinner">
|
|
<%= image_tag 'spinner.gif' %>
|
|
Loading Images information ...
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<% end -%>
|
|
|
|
</div>
|
|
|
|
<div class="well">
|
|
<%= link_to 'Edit', edit_compute_resource_path(@compute_resource), :class => "btn" %>
|
|
<%= link_to 'Back', compute_resources_path, :class => "btn" %>
|
|
</div>
|
|
|