parent
502fa23d31
commit
4d5c65e6d4
12 changed files with 131 additions and 24 deletions
|
@ -207,8 +207,9 @@ quayApp.config(['$routeProvider', '$locationProvider', 'pages', function($routeP
|
|||
// Public Repo Experiments
|
||||
.route('/__exp/publicRepo', 'public-repo-exp')
|
||||
|
||||
// Default: Redirect to the landing page
|
||||
.otherwise({redirectTo: '/'});
|
||||
// 404/403
|
||||
.route('/:catchall', 'error-view')
|
||||
.route('/:catch/:all', 'error-view');
|
||||
}]);
|
||||
|
||||
// Configure compile provider to add additional URL prefixes to the sanitization list. We use
|
||||
|
|
17
static/js/pages/error-view.js
Normal file
17
static/js/pages/error-view.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
(function() {
|
||||
/**
|
||||
* Error view page.
|
||||
*/
|
||||
angular.module('quayPages').config(['pages', function(pages) {
|
||||
pages.create('error-view', 'error-view.html', ErrorViewCtrl, {
|
||||
'title': '{{code}}',
|
||||
'description': 'Error',
|
||||
'newLayout': false
|
||||
});
|
||||
}]);
|
||||
|
||||
function ErrorViewCtrl($scope, ApiService, $routeParams, UserService) {
|
||||
$scope.info = window.__error_info;
|
||||
$scope.code = window.__error_code;
|
||||
}
|
||||
}());
|
|
@ -13,6 +13,9 @@
|
|||
function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, PlanService, ApiService, CookieService, Features) {
|
||||
$scope.Features = Features;
|
||||
$scope.holder = {};
|
||||
$scope.org = {
|
||||
'name': $routeParams['namespace'] || ''
|
||||
};
|
||||
|
||||
UserService.updateUserIn($scope);
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
})
|
||||
}]);
|
||||
|
||||
function NewRepoCtrl($scope, $location, $http, $timeout, UserService, ApiService, PlanService, TriggerService, Features) {
|
||||
function NewRepoCtrl($scope, $location, $http, $timeout, $routeParams, UserService, ApiService, PlanService, TriggerService, Features) {
|
||||
UserService.updateUserIn($scope);
|
||||
|
||||
$scope.Features = Features;
|
||||
|
@ -19,7 +19,8 @@
|
|||
$scope.repo = {
|
||||
'is_public': 0,
|
||||
'description': '',
|
||||
'initialize': ''
|
||||
'initialize': '',
|
||||
'name': $routeParams['name']
|
||||
};
|
||||
|
||||
$scope.changeNamespace = function(namespace) {
|
||||
|
|
Reference in a new issue