Fix the duplicate meta description problem reported by webmaster tools.

This commit is contained in:
yackob03 2014-01-13 12:57:02 -05:00
parent f8b4057b26
commit 5918082e6d

View file

@ -449,10 +449,11 @@ function RepoCtrl($scope, Restangular, ApiService, $routeParams, $rootScope, $lo
$scope.setTag($routeParams.tag);
// Set the title of the page.
$rootScope.title = namespace + '/' + name;
var qualifiedRepoName = namespace + '/' + name;
$rootScope.title = qualifiedRepoName;
var kind = repo.is_public ? 'public' : 'private';
$rootScope.description = jQuery(getFirstTextLine(repo.description)).text() ||
'View of a ' + kind + ' docker repository on Quay';
'Visualization of images and tags for ' + kind + ' Docker repository: ' + qualifiedRepoName;
// If the repository is marked as building, start monitoring it for changes.
if (repo.is_building) {