@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, tagReleaseMap: Map[String, gitbucket.core.model.Release], releaseAssetsMap: Map[gitbucket.core.model.Release, List[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){

@tagReleaseMap.count(_ => true) releases
@repository.tags.reverse.map{ tag =>
@tagReleaseMap.get(tag.name).map{rel => @tag.name ### @rel.name @helpers.avatar(rel.author, 20) @helpers.user(rel.author, styleClass="username strong") released this @gitbucket.core.helper.html.datetimeago(rel.registeredDate) @helpers.markdown( markdown = rel.content getOrElse "No description provided.", repository = repository, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission ) ## Downloads @releaseAssetsMap(rel).map{ asset => @asset.label } ZIP TAR.GZ }.getOrElse{ @gitbucket.core.helper.html.datetimeago(tag.time) @tag.name @if(hasWritePermission){ Create release } }
}

}}