Add status to image
This commit is contained in:
parent
43e76785f0
commit
664cddd4fa
6 changed files with 279 additions and 236 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
|
||||
<div class="btn-group btn-group-md" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#uploadImageModal">Upload</button>
|
||||
<button type="button" class="btn btn-default" ng-click="showUploadImageModal()">Upload</button>
|
||||
<button type="button" class="btn btn-default">Download</button>
|
||||
</div>
|
||||
<p></p>
|
||||
|
@ -16,6 +16,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Size</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
|
@ -23,6 +24,9 @@
|
|||
<tbody>
|
||||
<tr ng-repeat="image in images">
|
||||
<td>{{ image.name}}</td>
|
||||
<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>
|
||||
|
||||
<td>{{ (image.size / 1048576).toFixed(2)}} MB</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-primary" ng-click="edit(image)">Edit</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue