@(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(3){ 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 more @{userRepositories.size - max} pages...
} }
} }
Recent updated repositories
@if(recentRepositories.isEmpty){
No repositories
} else {
@recentRepositories.map { repository =>
@helper.html.repositoryicon(repository, false) @repository.owner/@repository.name
}
}
}