@(release: gitbucket.core.model.ReleaseTag, assets: Seq[gitbucket.core.model.ReleaseAsset], hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"Release ${release.name} - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("releases", repository){
@defining(repository.tags.find(_.name == release.tag)){ tag => @tag.map { tag => @tag.name
@tag.id.substring(0, 7)
@gitbucket.core.helper.html.datetimeago(tag.time) } }

### @release.name @if(hasWritePermission){
Edit
}

@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 )

@assets.map{ asset =>
- @asset.label @helpers.readableSize(Some(asset.size))
}
- Source code (zip)
- Source code (tar.gz)

} }