Fix handling of repositories list when not signed in

This commit is contained in:
Joseph Schorr 2013-10-02 13:29:18 -04:00
parent 35c1e6e53b
commit dc3ec72432
3 changed files with 12 additions and 3 deletions

View file

@ -80,7 +80,11 @@ function HeaderCtrl($scope, UserService) {
function GuideCtrl($scope, Restangular) {
}
function RepoListCtrl($scope, Restangular) {
function RepoListCtrl($scope, Restangular, UserService) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
$scope.user = currentUser;
}, true);
$scope.getCommentFirstLine = function(commentString) {
return getMarkedDown(getFirstTextLine(commentString));
};