@(gist: gitbucket.gist.model.Gist, forkedCount: Int, repositoryUrl: gitbucket.gist.util.GistUtils.GistRepositoryURL, revision: String, files: Seq[(String, String)], comments: Seq[gitbucket.gist.model.GistComment], editable: Boolean)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(if(gist.description.isEmpty) gist.repositoryName else gist.description){
@gitbucket.gist.html.header(gist, forkedCount, editable)
@gitbucket.gist.html.menu("code", gist, repositoryUrl)
@gist.description
@files.map { case (fileName, content) =>
@fileName
Raw
@if(helpers.isRenderable(fileName)){
@helpers.renderMarkup(List(fileName), content, "master", gist.toRepositoryInfo, false, false, true)
} else {
@content
}
} @gitbucket.gist.html.commentlist(gist, comments, editable, gist.toRepositoryInfo) @gitbucket.gist.html.commentform(gist)
}