@(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)(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.id.substring(0, 7) @gitbucket.core.helper.html.datetimeago(tag.time) @release.map { case (release, assets) => ### @release.name @helpers.avatar(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, 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)
}

} }