mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 10:36:05 +01:00 
			
		
		
		
	Fix presentation of index page and sign-in page.
This commit is contained in:
		| @@ -2,12 +2,13 @@ package app | ||||
|  | ||||
| import service._ | ||||
|  | ||||
| class IndexController extends IndexControllerBase with RepositoryService with AccountService | ||||
| class IndexController extends IndexControllerBase with RepositoryService with AccountService with SystemSettingsService | ||||
|  | ||||
| trait IndexControllerBase extends ControllerBase { self: RepositoryService => | ||||
| trait IndexControllerBase extends ControllerBase { self: RepositoryService with SystemSettingsService => | ||||
|    | ||||
|   get("/"){ | ||||
|     html.index(getAccessibleRepositories(context.loginAccount, baseUrl)) | ||||
|     html.index(getAccessibleRepositories(context.loginAccount, baseUrl), loadSystemSettings(), | ||||
|       context.loginAccount.map{ account => getRepositoryNamesOfUser(account.userName) }.getOrElse(Nil)) | ||||
|   } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user