@(activities: List[gitbucket.core.model.Activity], recentRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo], userRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo])(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @main("GitBucket"){
@dashboard.html.tab()
@helper.html.activities(activities)
@settings.information.map { information =>
@Html(information)
} @if(loginAccount.isEmpty){
@signinform(settings)
} else {
New repository
Your repositories @userRepositories.size

@if(userRepositories.isEmpty){
- No repositories
} else { @defining(20){ max => @userRepositories.zipWithIndex.map { case (repository, i) =>
- @helper.html.repositoryicon(repository, false) @if(repository.owner == loginAccount.get.userName){ @repository.name } else { @repository.owner/@repository.name }
} @if(userRepositories.size > max){
- Show @{userRepositories.size - max} more repositories...
} } }

}
Recent updated repositories

@if(recentRepositories.isEmpty){
- No repositories
} else { @defining(20){ max => @recentRepositories.zipWithIndex.map { case (repository, i) =>
- @helper.html.repositoryicon(repository, false) @repository.owner/@repository.name
} @if(recentRepositories.size > max){
- Show @{recentRepositories.size - max} more repositories...
} } }

}