@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, tag: gitbucket.core.util.JGitUtil.TagInfo, release: Option[(gitbucket.core.model.Release, Seq[gitbucket.core.model.ReleaseAsset])])(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"New Release - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("releases", repository){
@if(release.isEmpty){

### New release for @tag.name

} else {

### Update release for @tag.name

} @gitbucket.core.helper.html.preview( repository = repository, content = release.flatMap { case (release, _) => release.content }.getOrElse(tag.message), enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = true, completionContext = "releases", style = "height: 200px; max-height: 500px;", elastic = true, placeholder = "Describe this release" )

@release.map { case (release, assets) => @assets.map { asset =>
- @asset.label (remove)
} }

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