@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, releases: Seq[(gitbucket.core.util.JGitUtil.TagInfo, Option[(gitbucket.core.model.ReleaseTag, Seq[gitbucket.core.model.ReleaseAsset])])], hasWritePermission: Boolean, page: Int, totalReleases: Int)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main("Releases" + s" - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("releases", repository){

@releases.length releases
@releases.map { case (tag, release) =>
@tag.name @tag.commitId.substring(0, 7) @gitbucket.core.helper.html.datetimeago(tag.time) @release.map { case (release, assets) => ### @release.name @helpers.avatarLink(release.author, 20) @helpers.user(release.author, styleClass="username") released this @gitbucket.core.helper.html.datetimeago(release.registeredDate) @helpers.markdown( markdown = release.content getOrElse "No description provided.", repository = repository, branch = repository.repository.defaultBranch, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission ) }.getOrElse { @if(hasWritePermission){ Create release } @tag.message } @release.map { case (release, assets) => @assets.map { asset => @asset.label @helpers.readableSize(Some(asset.size)) } } Source code (zip) Source code (tar.gz)
}

@gitbucket.core.helper.html.paginator(page, totalReleases, gitbucket.core.service.ReleaseService.ReleaseLimit, 10)
} }