Switch to using the ?namespace param instead of cookie changes

This commit is contained in:
Joseph Schorr 2014-01-31 14:00:42 -05:00
parent fdb628a0b0
commit 407ef7ad3c
2 changed files with 7 additions and 11 deletions

View file

@ -1,10 +1,14 @@
<span class="repo-breadcrumb-element">
<span ng-show="!image">
<span class="crumb" ng-click="showNamespace()">{{repo.namespace}}</span>
<span class="crumb">
<a href="{{ '/repository/?namespace=' + repo.namespace }}">{{repo.namespace}}</a>
</span>
<span class="current">{{repo.name}}</span>
</span>
<span ng-show="image">
<span class="crumb" ng-click="showNamespace()">{{repo.namespace}}</span>
<span class="crumb">
<a href="{{ '/repository/?namespace=' + repo.namespace }}">{{repo.namespace}}</a>
</span>
<span class="crumb"><a href="{{ '/repository/' + repo.namespace + '/' + repo.name }}">{{repo.name}}</a></span>
<span class="current">{{image.id.substr(0, 12)}}</span>
</span>

View file

@ -874,15 +874,7 @@ quayApp.directive('repoBreadcrumb', function () {
'repo': '=repo',
'image': '=image'
},
controller: function($scope, $element, $location, UserService, CookieService) {
$scope.showNamespace = function() {
var namespace = $scope.repo.namespace || '';
if (UserService.isKnownNamespace(namespace)) {
CookieService.putPermanent('quay.namespace', namespace);
}
$location.path('/repository/');
};
controller: function($scope, $element) {
}
};
return directiveDefinitionObject;