Fix handling of repositories list when not signed in
This commit is contained in:
parent
35c1e6e53b
commit
dc3ec72432
3 changed files with 12 additions and 3 deletions
|
@ -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));
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
</div>
|
||||
|
||||
<div class="container" ng-show="!loading">
|
||||
<div class="repo-list">
|
||||
<div class="repo-list" ng-show="!user.anonymous">
|
||||
<h3>Your Repositories</h3>
|
||||
<div ng-show="private_repositories.length > 0">
|
||||
<div class="repo-listing" ng-repeat="repository in private_repositories">
|
||||
|
|
Reference in a new issue