@(release: gitbucket.core.model.Release, assets: List[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.name} - Release ${release.releaseId} - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("releases", repository){
@release.tag
@if(hasWritePermission){ Edit title Delete }
Save Cancel

# @release.name

@helpers.avatar(release.author, 20) @helpers.user(release.author, styleClass="username strong") released this @gitbucket.core.helper.html.datetimeago(release.registeredDate) @if(hasWritePermission){ }
@helpers.markdown( markdown = release.content getOrElse "No description provided.", repository = repository, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission )

## Downloads

@if(hasWritePermission){
Attach release files by dragging & dropping, or selecting them.
}

@assets.map{ asset =>
- @asset.label @helpers.readableSize(Some(asset.size))
}

- ZIP
- TAR.GZ

} }