mirror of https://github.com/portainer/portainer
Merge branch 'feat68-update-repository-field' into internal
commit
48b6b6340b
|
@ -79,7 +79,7 @@
|
|||
</th>
|
||||
<th>
|
||||
<a ui-sref="images" ng-click="order('RepoTags')">
|
||||
Repository
|
||||
Tags
|
||||
<span ng-show="sortType == 'RepoTags' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
||||
<span ng-show="sortType == 'RepoTags' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
||||
</a>
|
||||
|
@ -97,7 +97,9 @@
|
|||
<tr ng-repeat="image in (state.filteredImages = (images | filter:state.filter | orderBy:sortType:sortReverse))">
|
||||
<td><input type="checkbox" ng-model="image.Checked" ng-change="selectItem(image)" /></td>
|
||||
<td><a ui-sref="image({id: image.Id})">{{ image.Id|truncate:20}}</a></td>
|
||||
<td>{{ image|repotag }}</td>
|
||||
<td>
|
||||
<span class="label label-primary image-tag" ng-repeat="tag in (image|repotags)">{{ tag }}</span>
|
||||
</td>
|
||||
<td>{{ image.VirtualSize|humansize }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -142,17 +142,17 @@ angular.module('dockerui.filters', [])
|
|||
return _.split(container.Names[0], '/')[1];
|
||||
};
|
||||
})
|
||||
.filter('repotag', function () {
|
||||
.filter('repotags', function () {
|
||||
'use strict';
|
||||
return function (image) {
|
||||
if (image.RepoTags && image.RepoTags.length > 0) {
|
||||
var tag = image.RepoTags[0];
|
||||
if (tag === '<none>:<none>') {
|
||||
tag = '';
|
||||
return [];
|
||||
}
|
||||
return tag;
|
||||
return image.RepoTags;
|
||||
}
|
||||
return '';
|
||||
return [];
|
||||
};
|
||||
})
|
||||
.filter('getdate', function () {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
function ImageViewModel(data) {
|
||||
console.log(JSON.stringify(data, null, 4));
|
||||
this.Id = data.Id;
|
||||
this.Tag = data.Tag;
|
||||
this.Repository = data.Repository;
|
||||
|
|
|
@ -177,3 +177,11 @@ input[type="radio"] {
|
|||
.red-icon {
|
||||
color: #ae2323;
|
||||
}
|
||||
|
||||
.image-tag {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.widget .widget-body table tbody .image-tag {
|
||||
font-size: 90% !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue