Switch to using the ?namespace param instead of cookie changes
This commit is contained in:
parent
fdb628a0b0
commit
407ef7ad3c
2 changed files with 7 additions and 11 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue