Skip to content

Commit 4419f2a

Browse files
author
Brad van der Laan
committed
Change landing page to repositories
Currently the landing page is the home page but that requires the user to make one mouse click to navigate to the repositories page which is where the action is. This change set just updates the default landing route from Home to repositories (with a default page of 20). The Home page still exists but is not the default location the user lands on when going to the site. This fixes issues #34
1 parent acd3f1f commit 4419f2a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ angular
8484
controller: 'CreateTagController',
8585
}).
8686
otherwise({
87-
redirectTo: '/home'
87+
redirectTo: '/repositories/20'
8888
});
8989
}]);

app/app.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ describe('docker-registry-frontend', function() {
159159
expect($route.current.controller).toBe('CreateTagController');
160160
});
161161

162-
it('/unknown-url should display home page', function() {
163-
$httpBackend.expectGET('home.html').respond(200);
162+
it('/unknown-url should display repositories page', function() {
163+
$httpBackend.expectGET('repository/repository-list.html').respond(200);
164164
$location.path('/unknown-url');
165165
$rootScope.$digest();
166-
expect($route.current.templateUrl).toBe('home.html');
167-
expect($route.current.controller).toBe('HomeController');
166+
expect($route.current.templateUrl).toBe('repository/repository-list.html');
167+
expect($route.current.controller).toBe('RepositoryListController');
168168
});
169169

170170
});

0 commit comments

Comments
 (0)