mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 02:25:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			490 B
		
	
	
	
		
			Scala
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			490 B
		
	
	
	
		
			Scala
		
	
	
	
	
	
| package app
 | |
| 
 | |
| import service._
 | |
| 
 | |
| class IndexController extends IndexControllerBase with RepositoryService with AccountService with SystemSettingsService
 | |
| 
 | |
| trait IndexControllerBase extends ControllerBase { self: RepositoryService with SystemSettingsService =>
 | |
|   
 | |
|   get("/"){
 | |
|     html.index(getAccessibleRepositories(context.loginAccount, baseUrl), loadSystemSettings(),
 | |
|       context.loginAccount.map{ account => getRepositoryNamesOfUser(account.userName) }.getOrElse(Nil))
 | |
|   }
 | |
| 
 | |
| } |