Add Level 'Deprecated'

This commit is contained in:
Pascal Hertleif 2016-07-15 13:08:13 +02:00
parent 8dad2ced7a
commit a4f070ba92
1 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@
<span ng-if="lint.level == 'Allow'" class="label label-info">Allow</span>
<span ng-if="lint.level == 'Warn'" class="label label-warning">Warn</span>
<span ng-if="lint.level == 'Deny'" class="label label-danger">Deny</span>
<span ng-if="lint.level == 'Deprecated'" class="label label-default">Deprecated</span>
<a href="#{{lint.id}}" class="anchor label label-default">&para;</a>
</h2>
@ -131,7 +132,7 @@
})
.controller("lintList", function ($scope, $http) {
// Level filter
$scope.levels = {Allow: true, Warn: true, Deny: true};
$scope.levels = {Allow: true, Warn: true, Deny: true, Deprecated: true};
$scope.byLevels = function (lint) {
return $scope.levels[lint.level];
};