2016-03-16 18:01:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-default" ng-controller="imageCtrl">
|
2016-01-24 19:19:32 +01:00
|
|
|
<div class="panel-heading">
|
2016-03-16 15:36:12 +01:00
|
|
|
Image Manager
|
2016-01-24 19:19:32 +01:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2016-03-09 15:33:52 +01:00
|
|
|
|
2016-04-17 20:11:46 +02:00
|
|
|
|
|
|
|
<div class="btn-group btn-group-md" role="group" aria-label="...">
|
2016-05-06 14:24:15 +02:00
|
|
|
<button type="button" class="btn btn-default" ng-click="showCreateImageModal()">Create Image</button>
|
2016-04-17 20:11:46 +02:00
|
|
|
<button type="button" class="btn btn-default">Download</button>
|
|
|
|
</div>
|
|
|
|
<p></p>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2016-05-06 14:06:56 +02:00
|
|
|
<th>Status</th>
|
2016-04-17 20:11:46 +02:00
|
|
|
<th>Size</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="image in images">
|
|
|
|
<td>{{ image.name}}</td>
|
2016-05-06 14:06:56 +02:00
|
|
|
<td ng-if="image.status == 'queued'"><font color="red">{{ image.status}}</font></td>
|
|
|
|
<td ng-if="image.status != 'queued'"><font color="green">{{ image.status}}</font></td>
|
|
|
|
|
2016-04-17 20:11:46 +02:00
|
|
|
<td>{{ (image.size / 1048576).toFixed(2)}} MB</td>
|
|
|
|
<td>
|
2016-04-17 20:43:41 +02:00
|
|
|
<button type="button" class="btn btn-primary" ng-click="edit(image)">Edit</button>
|
2016-05-06 14:24:15 +02:00
|
|
|
<button type="button" class="btn btn-danger" ng-click="deleteImage(image.id)">Remove</button>
|
2016-04-17 20:11:46 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-16 16:05:24 +01:00
|
|
|
|
2016-01-24 19:19:32 +01:00
|
|
|
</div>
|
|
|
|
</div>
|