Merge pull request #1796 from coreos-inc/ui-fix

Fix grammar in entity search
This commit is contained in:
josephschorr 2016-08-31 14:21:35 -04:00 committed by GitHub
commit a6350e7dba

View file

@ -250,10 +250,8 @@ angular.module('quay').directive('entitySearch', function () {
if ($scope.isAdmin && isSupported('robot')) { classes.push('robot accounts'); }
if ($scope.isOrganization && isSupported('team')) { classes.push('teams'); }
if (classes.length > 1) {
classes[classes.length - 1] = 'or ' + classes[classes.length - 1];
} else if (classes.length == 0) {
return '<div class="tt-empty">No matching entities found</div>';
if (classes.length == 0) {
return '<div class="tt-empty">No matching entities found</div>';
}
var class_string = '';