@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, tag: gitbucket.core.util.JGitUtil.TagInfo, tags: Seq[String], content: String, release: Option[(gitbucket.core.model.ReleaseTag, 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

}
Previous tag:
@gitbucket.core.helper.html.preview( repository = repository, content = content, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = true, completionContext = "releases", style = "height: 200px; max-height: 500px;", elastic = true, placeholder = "Describe this release", ariaLabel = "Release content" )

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

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