1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

Cleaned up linter errors.

This commit is contained in:
Kevan Ahlquist 2015-01-03 18:39:40 -06:00
parent e507af62aa
commit ab2819addd
11 changed files with 62 additions and 58 deletions

View file

@ -70,10 +70,10 @@
<td>Hostname:</td>
<td>{{ container.Config.Hostname }}</td>
</tr>
<tr>
<td>IPAddress:</td>
<td>{{ container.NetworkSettings.IPAddress }}</td>
</tr>
<tr>
<td>IPAddress:</td>
<td>{{ container.NetworkSettings.IPAddress }}</td>
</tr>
<tr>
<td>Cmd:</td>
<td>{{ container.Config.Cmd }}</td>

View file

@ -1,7 +1,7 @@
angular.module('containerLogs', [])
.controller('ContainerLogsController', ['$scope', '$routeParams', '$location', '$anchorScroll', 'ContainerLogs', 'Container', 'ViewSpinner',
function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Container, ViewSpinner) {
$scope.stdout = '';
$scope.stdout = '';
$scope.stderr = '';
$scope.showTimestamps = false;
@ -20,7 +20,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
function getLogs() {
ContainerLogs.get($routeParams.id, {stdout: 1, stderr: 0, timestamps: $scope.showTimestamps}, function(data, status, headers, config) {
// Replace carriage returns twith newlines to clean up output
// Replace carriage returns twith newlines to clean up output
$scope.stdout = data.replace(/[\r]/g, '\n');
});
ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1}, function(data, status, headers, config) {
@ -40,9 +40,9 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
$scope.scrollTo = function(id) {
$location.hash(id);
$anchorScroll();
}
};
$scope.toggleTimestamps = function() {
getLogs();
}
getLogs();
};
}]);

View file

@ -18,7 +18,7 @@
<div class="pull-right">
<input type="checkbox" ng-model="displayAll"
ng-change="toggleGetAll()"/> Display All
ng-change="toggleGetAll()"/> Display All
</div>
</div>
<table class="table table-striped">

View file

@ -27,7 +27,7 @@ angular.module('dashboard', [])
}
Container.query({all: 1}, function(d) {
var running = 0
var running = 0;
var ghost = 0;
var stopped = 0;

View file

@ -36,7 +36,7 @@ function($scope, $q, $routeParams, $location, Image, Container, Messages, LineCh
var containers = [];
for (var i = 0; i < d.length; i++) {
var c = d[i];
if (c.Image == tag) {
if (c.Image === tag) {
containers.push(new ContainerViewModel(c));
}
}