mirror of https://github.com/portainer/portainer
feat(global): display a message when no item available in a list view (#263)
parent
134416c9a3
commit
35ced4901a
|
@ -98,6 +98,9 @@
|
||||||
<span ng-if="container.Ports.length == 0" >-</span>
|
<span ng-if="container.Ports.length == 0" >-</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr ng-if="containers.length == 0">
|
||||||
|
<td colspan="8" class="text-center text-muted">No containers available.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
angular.module('containers', [])
|
angular.module('containers', [])
|
||||||
.controller('ContainersController', ['$scope', 'Container', 'ContainerHelper', 'Info', 'Settings', 'Messages', 'Config',
|
.controller('ContainersController', ['$scope', 'Container', 'ContainerHelper', 'Info', 'Settings', 'Messages', 'Config',
|
||||||
function ($scope, Container, ContainerHelper, Info, Settings, Messages, Config) {
|
function ($scope, Container, ContainerHelper, Info, Settings, Messages, Config) {
|
||||||
|
|
||||||
$scope.state = {};
|
$scope.state = {};
|
||||||
$scope.state.displayAll = Settings.displayAll;
|
$scope.state.displayAll = Settings.displayAll;
|
||||||
$scope.state.displayIP = false;
|
$scope.state.displayIP = false;
|
||||||
|
@ -9,6 +8,7 @@ function ($scope, Container, ContainerHelper, Info, Settings, Messages, Config)
|
||||||
$scope.sortReverse = false;
|
$scope.sortReverse = false;
|
||||||
$scope.state.selectedItemCount = 0;
|
$scope.state.selectedItemCount = 0;
|
||||||
$scope.swarm_mode = false;
|
$scope.swarm_mode = false;
|
||||||
|
$scope.containers = [];
|
||||||
|
|
||||||
$scope.order = function (sortType) {
|
$scope.order = function (sortType) {
|
||||||
$scope.sortReverse = ($scope.sortType === sortType) ? !$scope.sortReverse : false;
|
$scope.sortReverse = ($scope.sortType === sortType) ? !$scope.sortReverse : false;
|
||||||
|
|
|
@ -107,6 +107,9 @@
|
||||||
<td>{{ image.VirtualSize|humansize }}</td>
|
<td>{{ image.VirtualSize|humansize }}</td>
|
||||||
<td>{{ image.Created|getisodatefromtimestamp }}</td>
|
<td>{{ image.Created|getisodatefromtimestamp }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr ng-if="images.length == 0">
|
||||||
|
<td colspan="5" class="text-center text-muted">No images available.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@ function ($scope, $state, Config, Image, Messages) {
|
||||||
$scope.sortType = 'RepoTags';
|
$scope.sortType = 'RepoTags';
|
||||||
$scope.sortReverse = true;
|
$scope.sortReverse = true;
|
||||||
$scope.state.selectedItemCount = 0;
|
$scope.state.selectedItemCount = 0;
|
||||||
|
$scope.images = [];
|
||||||
|
|
||||||
$scope.config = {
|
$scope.config = {
|
||||||
Image: '',
|
Image: '',
|
||||||
|
|
|
@ -131,6 +131,9 @@
|
||||||
<td>{{ network.IPAM.Config[0].Subnet ? network.IPAM.Config[0].Subnet : '-' }}</td>
|
<td>{{ network.IPAM.Config[0].Subnet ? network.IPAM.Config[0].Subnet : '-' }}</td>
|
||||||
<td>{{ network.IPAM.Config[0].Gateway ? network.IPAM.Config[0].Gateway : '-' }}</td>
|
<td>{{ network.IPAM.Config[0].Gateway ? network.IPAM.Config[0].Gateway : '-' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr ng-if="networks.length == 0">
|
||||||
|
<td colspan="8" class="text-center text-muted">No networks available.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,6 +6,7 @@ function ($scope, $state, Network, Config, Messages) {
|
||||||
$scope.state.advancedSettings = false;
|
$scope.state.advancedSettings = false;
|
||||||
$scope.sortType = 'Name';
|
$scope.sortType = 'Name';
|
||||||
$scope.sortReverse = false;
|
$scope.sortReverse = false;
|
||||||
|
$scope.networks = [];
|
||||||
|
|
||||||
$scope.config = {
|
$scope.config = {
|
||||||
Name: ''
|
Name: ''
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
<div class="title">{{ tpl.title }}</div>
|
<div class="title">{{ tpl.title }}</div>
|
||||||
<div class="description">{{ tpl.description }}</div>
|
<div class="description">{{ tpl.description }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-if="templates.length == 0" class="text-center text-muted">
|
||||||
|
No templates available.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</rd-widget-body>
|
</rd-widget-body>
|
||||||
</rd-widget>
|
</rd-widget>
|
||||||
|
|
|
@ -7,6 +7,7 @@ function ($scope, $q, $state, $filter, Config, Info, Container, ContainerHelper,
|
||||||
network: "",
|
network: "",
|
||||||
name: ""
|
name: ""
|
||||||
};
|
};
|
||||||
|
$scope.templates = [];
|
||||||
|
|
||||||
var selectedItem = -1;
|
var selectedItem = -1;
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,9 @@
|
||||||
<td>{{ volume.Driver }}</td>
|
<td>{{ volume.Driver }}</td>
|
||||||
<td>{{ volume.Mountpoint }}</td>
|
<td>{{ volume.Mountpoint }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr ng-if="volumes.length == 0">
|
||||||
|
<td colspan="4" class="text-center text-muted">No volumes available.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@ function ($scope, $state, Volume, Messages) {
|
||||||
$scope.state.selectedItemCount = 0;
|
$scope.state.selectedItemCount = 0;
|
||||||
$scope.sortType = 'Name';
|
$scope.sortType = 'Name';
|
||||||
$scope.sortReverse = true;
|
$scope.sortReverse = true;
|
||||||
|
$scope.volumes = [];
|
||||||
|
|
||||||
$scope.config = {
|
$scope.config = {
|
||||||
Name: ''
|
Name: ''
|
||||||
|
|
|
@ -238,12 +238,12 @@ input[type="radio"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.container-template--selected {
|
.container-template--selected {
|
||||||
background-color: #f6f6f6;
|
background-color: #ececec;
|
||||||
color: #2d3e63;
|
color: #2d3e63;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container-template:hover {
|
.container-template:hover {
|
||||||
background-color: #f6f6f6;
|
background-color: #ececec;
|
||||||
color: #2d3e63;
|
color: #2d3e63;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue