Get the tabs working and the UI for the image history. Note that the model changes for the image history are WRONG and need to be fixed
This commit is contained in:
parent
94cba8a0bc
commit
bf926aceee
5 changed files with 89 additions and 16 deletions
|
@ -52,8 +52,8 @@
|
|||
</ul>
|
||||
</span>
|
||||
</li>
|
||||
<li class="active"><a href="javascript:void(0)">Current Image</a></li>
|
||||
<li><a href="javascript:void(0)">Image History</a></li>
|
||||
<li id="current-image-tab" class="active" ng-click="showTab('current-image')"><a href="javascript:void(0)">Current Image</a></li>
|
||||
<li id="image-history-tab" ng-click="showTab('image-history')"><a href="javascript:void(0)">Image History</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="current-image">
|
||||
|
@ -73,6 +73,30 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="image-history" style="display: none">
|
||||
<div ng-hide="imageHistory">
|
||||
Loading images...
|
||||
</div>
|
||||
|
||||
<div ng-show="imageHistory">
|
||||
<table class="images">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Created</td>
|
||||
<td>Comment</td>
|
||||
<td>ID</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tr ng-repeat="image in imageHistory">
|
||||
<td><span am-time-ago="parseDate(image.created)"></span></td>
|
||||
<td>{{ image.comment }}</td>
|
||||
<td>{{ image.id }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal edit for the description -->
|
||||
<div class="modal fade" id="editModal">
|
||||
<div class="modal-dialog">
|
||||
|
|
Reference in a new issue