@(pageName: Option[String], commits: List[gitbucket.core.util.JGitUtil.CommitInfo], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, isEditable: Boolean)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"History - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("wiki", repository){ @if(isEditable) {
@if(pageName.isEmpty) { New Page } else { Edit Page New Page }
}

# @if(pageName.isEmpty){ History } else { History for @pageName.get }

Revisions
@commits.map { commit =>
| @helpers.avatarLink(commit, 20) @helpers.user(commit.authorName, commit.authorEmailAddress) | @gitbucket.core.helper.html.datetimeago(commit.authorTime): @commit.shortMessage
}

} }