# @title

@(title: String, repository: Option[service.RepositoryService.RepositoryInfo] = None)(body: Html)(implicit context: app.Context) @import context._ @import view.helpers._
GitBucket @defining(servlet.AutoUpdate.getCurrentVersion){ version => @version.majorVersion.@version.minorVersion }
@repository.map { repository => } @if(loginAccount.isDefined){ @avatar(loginAccount.get.userName, 20) @loginAccount.get.userName @if(loginAccount.get.isAdmin){ } } else { Sign in }
@body