aboutsummaryrefslogtreecommitdiff
path: root/app/views/image_upload/index.html.erb
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-06-14 19:14:10 +0200
committerGuido Günther <agx@sigxcpu.org>2016-06-14 19:14:10 +0200
commitbe945de33c794a449c5fcbf991db4bf0d49b1fb7 (patch)
tree477c5f4b708e37200f9042e206e4d7874d2eeae7 /app/views/image_upload/index.html.erb
Initial commitHEADmaster
Diffstat (limited to 'app/views/image_upload/index.html.erb')
-rw-r--r--app/views/image_upload/index.html.erb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/image_upload/index.html.erb b/app/views/image_upload/index.html.erb
new file mode 100644
index 0000000..380ae57
--- /dev/null
+++ b/app/views/image_upload/index.html.erb
@@ -0,0 +1,18 @@
+<% title "Image upload for #{@compute.name}" %>
+
+<% title_actions button_group(link_to_if_authorized _('Upload Imge'), hash_for_new_compute_resource_image_upload_path(params[:compute_resource_id]), :class => 'btn btn-default') %>
+
+<table class="table table-bordered table-striped table-condensed" data-table='inline'>
+ <thead>
+ <th>Pool</th>
+ <th>Capacity</th>
+ </thead>
+ <tbody>
+ <% @compute.storage_pools.each do |pool| %>
+ <tr>
+ <td><%= pool.name %></td>
+ <td><%= pool.capacity %></td>
+ </tr>
+ <% end -%>
+ </tbody>
+</table>