@(pathList: List[String], branch: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, commits: Seq[Seq[gitbucket.core.util.JGitUtil.CommitInfo]], page: Int, hasNext: Boolean, hasWritePermission: Boolean, getStatuses: String => List[gitbucket.core.model.CommitStatus], getSummary: List[gitbucket.core.model.CommitStatus] => (gitbucket.core.model.CommitState, String), getTags: String => List[String])(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @gitbucket.core.html.menu("files", repository){
@if(pathList.isEmpty){ @gitbucket.core.helper.html.branchcontrol(branch, repository, hasWritePermission){ @repository.branchList.map { x =>
  • @gitbucket.core.helper.html.checkicon(x == branch) @x
  • } } } @if(pathList.nonEmpty){ History for @repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ @section } else { @section / } } }
    @commits.map { day => @day.zipWithIndex.map { case (commit, i) => @if(i != 0){ } } }
    @helpers.date(day.head.commitTime)
    @defining(getTags(commit.id)) { tags => @if(tags.nonEmpty){ @tags.map { tag => @tag } } } @commit.id.substring(0, 7)
    Browse files ยป
    @helpers.avatarLink(commit, 40)
    @helpers.link(commit.summary, repository) @if(commit.description.isDefined){ ... }
    @if(commit.description.isDefined){ }
    @if(commit.isDifferentFromAuthor) { @helpers.user(commit.authorName, commit.authorEmailAddress, "username") authored @gitbucket.core.helper.html.datetimeago(commit.authorTime) } @helpers.user(commit.committerName, commit.committerEmailAddress, "username") committed @gitbucket.core.helper.html.datetimeago(commit.commitTime) @defining({ val statuses = getStatuses(commit.id) val (summary, summaryText) = getSummary(statuses) (statuses, summary, summaryText) }){ case (statuses, summaryState, summaryText) => @if(statuses.nonEmpty){ @helpers.commitStateIcon(summaryState) @helpers.commitStateText(summaryState, commit.id) - @summaryText checks Show all checks
    @statuses.map{ status =>
    @helpers.commitStateIcon(status.state) @status.context @status.description.map { desc => - @desc } @status.targetUrl.map { url => - Details }
    }
    } }
    } }